V10 built in 2005, to replace Kessy new learning?

Hello dear community and indeed I have a huge problem with my vw phaeton v10 tdi built in 2005. It can no longer be started and has a total failure of the electrics. I checked both batteries and all fuses, all so far in order. The key goes also only by not unlocking from the ignition lock In addition, you can only open the car manually, so I once exposed the keyless go control unit and determined that the whole footroom was running full with water, is now the question whether you can exchange the keyless go control unit simply for one with the identical part number or does this have to be learned first? Thank you already.