No, companions are also under the same restrictions, because they can appear in the same scenes the PC is part of, and in interchangeable spots. So for the PC restrictions to be useful, the companions must also be under the same ones.
Any other NPCs can be whatever the fuck they want to though...