Pregnant on pill?

Could I possibly get pregnant on the pill? My boyfriend and I are not trying to get pregnant but we wouldn’t be mad if it happened. I mess it up all the time, but I’ve also heard you don’t ovulate, is that true?