So yes, a second engine is often added for power. Sometimes longer trains will have multiple locomotives spaced at intervals throughout the train - several at the front, one or two in the middle, and a few more pushing from the rear. This helps reduce the strain on the couplings between the cars.