Am I safe?!?!

I had sex twice last week, both times we used a condom the entire time, he pulled out not even being close to finishing, I take the pill at the same time every day and we filled the condoms with water after to check for holes which there none. Am I safe from pregnancy? My period is due next week and I’m being anxious.