Skipped a pill, but took a pill?

I realized that last night I took the wrong pill. I had one pill left of one week, but I didn't see it and took the pill of another week because my room was dark at the time that I took it. I just want to know if I'm still protected? I think I am I just need some reassurance.