At the druid’s option, she may have any spell (but not any spell-like ability) she casts upon herself also affect her animal companion.
At the master’s option, he may have any spell (but not any spell-like ability) he casts on himself also affect his familiar.
Qualquer feitiço significa qualquer feitiço, incluindo aqueles de outras classes. Sim, você pode fazer isso.