Taking the pill on the wrong day


I have been taking the pill properly for the last three months. Yesterday I accidentally took today's pill. Today I took yesterday's pill. I am on the 21 day pack where I dont take any pills for one week. I had unprotected sex with my boyfriend yesterday but he did not come inside of me. Should I be okay even though I accidentally switched them?