Have someone ever got pregnant taking pills regularly?

I'm taking pills, but sometimes I.just forget. It takes a few hours to.remember but a I read once that if.this is frequent I may have chances to get pregnant.