Can I program a 3.3V ATmega MCU with 5V programmer (USBasp)?
If the ATMega8A can operate at 5V (which it can, as its operating range is 2.7-5.5V), then you can program it (and run it) at whatever voltage your programmer is and it will run, as long as it is within 2.7-5.5V.