HELP! CONDOM BROKE

So the condom broke while having sex. He cummed. I'm supposeto start my period tomorrow or the day after that. Can I take the plan b pill and will it work? Would my period have an effect on the pill?