Birth control help

I stopped taking birth control my question is if I take one birth control pill before sex would it prevent pregnancy?