Plan B and Period

My boyfriend and I had sex on my period and he came inside me.. will the Plan B pill still work!?