Being on a schedule

So how exact to you have to be on a schedule with taking your birth control pill? I just take it when I wake up which varies every morning. I have unprotected sex to.