Should I take plan B??

So last night around 11 I had sex with my boyfriend, when he realized the condom broke. He pulled out immediately and he didn’t cum. I’m just wondering if I should take it to be safe? It was the last day of my period so I don’t know if that makes much of a difference.