Forgotten

I've been taking my birth control for around 10 months now and I'm usually really good at taking my birth control on time which is at 8 a.m. Well this morning, it escaped my mind completely and I didn't realize I forgot to take it. I, then, had unprotected sex. Then I remembered that I didn't take it and so I took it at 9:06 ish this morning. My pill should still be effective, right?