Does the layout of a car affect performance?

Whether the drive is:-
RWD
4WD
FWD

Whether the engine is:-
Front End
Mid-Ship
Rear End

Does it affect anything?