Plan b question

So yesterday night me and my significant other were drinking and as drinking goes sometimes, we got a little freaky. Lol. We had sex but used a condom. Im a little concerned if maybe the condom broke . He check twice and said no but he was a little tipsy. So i thought id take a plan b. But today i woke up and got my period. Would the pill still work or should i not get it?