Sex / plan b

Okay so yesterday me and my boyfriend had unprotected sex. He cumed in me. Today I woke up and got my period but I still got plan B. Will it still work if I'm on my period?