If I had sex right now and my partner

Tiffany
If I had sex right now and my partner came in me and I took a birth control pill right now would it prevent something from happening ???