Will birth control still protect you if you have unprotected sex on your period?

Miya
My boyfriend pulled out but I'm still kind of nervous.