Unprotected sex on period?

I know there's always a chance of getting pregnant, but I had unprotected sex yesterday for the first and I can't get plan b until tomorrow. Will it still be effective?