Plan B effectiveness

Hey everyone,

I had sex about 2 days ago. I plan on taking a Plan B tomorrow because that’s when I’ll have money. It was unprotected sex, and I was still technically on my period (it was my remaining 2 days) Will the plan b be effective still? And is there a higher risk of me getting pregnant since I had sex on my period?