Legally no reason why not so long as pilot is qualified in the rh seat.
However, not that ideal from a CRM point of view, especially if the experience levels are similar - trans cockpit command authority gradient may not be optimum!
However, if you really want to make things even worse put two training captains together - I speak as one who has been in that role!