You can though, in the middle of a dialogue, switch characters (F1 F2 F3 F4) and have them initiate a dialogue... (to be re-tested).
But, yes, the ideal is to choose the right companion before starting the dialogue.
This "trick" also allows companions to do stuff while another is in dialogue.