Thank you for posting your question here, I will try to answer it to the best of my abilities.
Yes, there are some variations as to how long the pill is effective after you stop taking it, but the popular answer is 7 days.
Whether or not you're pregnant depends on whether or not you were ovulating at the time when you had intercourse. Also did you use a condom?
I recommend you take a home pregnancy
test in around 5-6 days, that should give you your answer.
I hope this answered your question.