ATmega2560 burnt

My ATmega2560 from my printer burnt. Can I exchange it for another and load the firmware?