Have you ever gotten pregnant while on the pill?

How safe is it exactly? How safe are you while taking it inconsistently or at different times?