Pregnant on the pill?

What would it take for me to get pregnant on the pill? I want to make sure I’m doing everything correctly for me to NOT get pregnant, since I’m new to the pill.