As long as sexual interaction takes place and sperm enters the vagina, there is a chance of pregnancy even while taking the pill. The withdrawal method is also not 100% effective, which means that pulling out while on the pill does not reduce the chance of pregnancy to 0%.