pill and pregnancy

How can people still get pregnant if they're on the pill??