Certain do others adopt their fellows or masters ways and behaviour, good householder.
Animals are able to even keep the Uposatha, yet of course just as a adopted ritual. What ever often undertaken and used to one tends to. Used and pleased by certain ways, being might find easier access once in better circumstances.
There is a village dog here, used to join visitors and always take part on what ever merits. This near Dhamma fellow found himself there because of lack of virtue, yet more 'blessed' (meritorious tendency) than 95% of the villagers. He would often join others keeping a day or more the Uposatha, simply lying in the forest hermitage (where there is no food, no entertaining) and return home with them.
So yes, one's fellows (those bound to one, especially if one is their master), near relatives, benefit from all good conducts, some a little, some huge.
Yet, it's good to do not start to adopt dogs ways and give 'just' out of compassion, as it works also the other way around.