The condom broke 😳

So about a month ago  me and my boyfriend where having sex and as soon as the condom broke he pulled then a few days later i got my monthly friend for my normal days 3-4, but then my stomach started to hurt is that okay? Can i be prego im freaking out still