atmega328 program

The program will be intact. Its quite common to use the Arduino Uno to program a chip then move the chip into a custom design.