Engine ECU made of W210 E290 TD in W461 gdt 290. Is that possible?

A nice morning, I have a question about “OM 602 DE 29 LA engine”. I have a W461 gdt 290 with the engine OM 602 DE 29 LA, type: 602.983. I want to drive the car for a long time and buy a control unit, in case it breaks down. In the W210 E290 Turbo we installed the same engine in the G type: 602.982. Now to the question: Can you just build the ECU from the E class into the G class? Do they just fit or are there problems?