If you are talking steam locomotives, surely the crankpins need to be at 90 degrees, so that the engine is self starting?
If they were in line, with a double acting engine, with the crankpins at inner or outer dead centre, there would be no torque to rotate the shaft, just linear forces acting on the bearings.
It would be a different matter with a four stroke I C engine, once it was running. The motor cycle enthusiasts will quote examples of parallel twins, no doubt.
Howard