how long before the pill will be effective in protecting against pregnancy?