The pill

If you have unprotected sex on the 5th day of taking the pill, and then take the 6th and 7th pill before you ovulate are you protected against pregnancy?