Birth control pill

Will my birth control still protect me from getting pregnant while I'm on my period if I had unprotected sex?