In a manner of speaking, yes. The electricity generated by the diesel engine-alternator set is normally used for running the loco's traction motors and on-board electronics. In the HOG WDP4Bs locos, an additional inverter was used to divert some part of the power generated by the loco's diesel engine to power the coaches.