Advice??

So I take the pill every morning at the same time but this morning I forgot and I had sex with my boyfriend later on then I took the pill. I heard the pill only stays in your body 7-8 hours. Would it be possible to get pregnant