When is it safe to have unprotected sex on the pill?

How many days into taking the pill? The first day? 7 days in? 9?