Birth control right before sex

Hi girlies!:) So me and my boyfriend are gonna meet next week on Friday, my period seems to be late 10 days(<a href="https://play.google.com/store/apps/details?id=com.glow.android.eve">Eve</a>), 2 days(Flo), also my cycles are always irregular and random. I was wondering is it possible to take 1 birth control pill on the same day I'd have sex and be protected from pregnancy? Since I'd be taking the pill when my period should be.