That's the first law of thermodynamics alright, but it predates Einstein by at least 100 years or more. He probably said it himself at some point, though.“Energy cannot be created or destroyed, it can only be changed from one form to another.”
― Albert Einstein
Imagine when that first Locomotive designer said:
"we ought to put a diesel motor on here and use it to power an electric generator then we can use that electricity to run a electric motor that we can use to propel the train"
I bet they all thought he was nuts!
today.......... every train runs like that.
Nothing about the diesel train mechanism you mention contradicts it, of course. Nobody who understands thermodynamics would have said that the idea was nuts, either. Why should they? The useful energy out is less than the total energy in.
