May sometimes be stupid, but unlikely to be illegal so long as the aeroplane remains properly controlled by the Captain, and within limits. Just occasionally you do come across an aeroplane where the manuals mandate that the PiC must be in a particular seat, but it's rare.
G