Help!

Could I get pregnant if I had sex on the week of my period? It was on the last day of it. We used condoms, I’m on birth control and he still pulled our before he came. I’m just worried because I’m feeling sick, I have had a cold tho, but the past 3 days I’ve been throwing up. It’s been about 2 weeks since we had sex. I took a test today but I think it’s way too early