pregnant on the pill?

Ch
im confused as to how its possible to get pregnant on the pill?! i was told the pill stops ovulation but i still ovulate??