HIV transmission can occur via pre-cum (prior to ejaculation). As a gay male having anal sex, it appears you still have much to learn and I sincerely hope you learn it quickly! Most importantly, unprotected anal sex places you at great risk for STDs, including HIV.