condom mishap

so my boyfriend and i had sex and then after we discovered that the condom had broken and so we're both freaking out and I'm wondering if i should take plan b or an emergency contraceptive even though my period just ended a few days ago, should i or should i not worry?