Programming an avr through arduino ide.

so i got a atmega8-8pu but i cant bootload it :(. i was thinking can i simply write a code in arduino ide then compile (convert) and with out the bootloader somehow send it to the avr throw the arduino boards tx and rx pins?

Do you have access to an Arduino?