Yes it is giving the xp. You can test it easily by going to dallis alone (note your actual xp before) and then you can go to dallis with your main character and the red prince.
And it is like that all the game, I try the game with only 2 characters also and I have a complet level less than my other team with 4 characters at the end of the alpha.