Birth control effectiveness

How long do I have to wait to have unprotected sex after I start taking birth control pills? Also what happens if I miss a couple throughout the first month?