Sure, but that's already kind of the case for gasoline engines, except when the manufacturer does something silly. Pick this engine, that transmission, the standard ECU, drop the software for the combination in.
In reality it's often not like that, but that's not for technical reasons.
--scott