ATMEGA328P-PU Voltage Input

So I have a atmega chip and I wonder if I could use a 9v battery to power it (standalone)

Through a 5V regulator, yes. Straight from the battery, no.

Per the data sheet (page 365) absolute maximum operating voltage is 6V.