Am i safe?

So I’m on cycle day 21, me and my boyfriend had sex yesterday technically and I’m freaking out. When I found out I was pregnant with my son, I had mild acid reflux. I have it again and my period is in 7 days. I hope this is just a coincidence and I shouldn’t have to worry. I’m on the mini pill by the way.