Anxiety problems

I’ve only had sex twice this month. Both times a condom was used the entire time. We checked for no holes and he pulled out very early both times. I also take my pill at the same time every day. Am I protected? Just in need of reassurance.