Yes. Any XP you earn is divided by the number of members in your party. The more party members, PC or NPC, the less XP each character gets.