Open Question: Question about the time birth control is taken?

I'm not worried. Just wondering, say you take the pill every day at 5pm, but you have unprotected sex at 3pm, is it safe, How does the time you take the pill effect the effectiveness?