How at risk am I of pregnancy?

So I’m on a pill, I had sex yesterday ( first time) and he pulled out and I’m supposed to get my period in three days, I’m really nervous and unsure about how safe I am right now from pregnancy.