Yes, if it is a BE aftermarket key, yes, it can be renewed and write the new key file.
If it is an original Mercedes key, the NEC chip has to be unsoldered and renewed.
How to Renew BE key with Autel IM608/IM508?
Insert BE key into IR hole of xp400 pro
select IMMO-> Mercedes-Benz->Expert Selection->Key->IR->Repair key
Read key information, key was programmed.
Select Renew BE key function and confirm to clear key
Clear the BE key successfully
Read key information again
Now the BE key was renewed and can be programmed to another Mercedes.
How to Renew NEC key?