Avoiding pregnancy!!!

I got my period on the 26th of April and I had protected sex with my bf but he didn't pull out when it came...so he came inside the condom which was inside me and it didn't break or anything ...but I'm freaking out...am I pregnant...?
I have some under belly pain just like the period ones but my period is meant to be coming on the 24th this month...I'm freaking out ...HELP