You could burn the file to an ATmega328, the ATmega used on the Arduino.
For a different ATmega chip, the source code has to be written to be compatable and compiled for that processor.
They differ in fuses, amount of flash and ram, ports and special function pins, registers, internal components such as uarts, timers, etc.
The .hex file would need to be uploaded with avrdude in order to program fuses.
Uploading a .hex file with the Arduino IDE "upload using programmer" function does not burn fuses.
An Arduino used as ISP can be used with avrdude to upload the file.
There is a graphical front end for avrdude called AVRdudess that can help using avrdude.
Here is an link that talks about uploading using a programmer:
https://www.arduino.cc/en/Hacking/Programmer