Hereditary?

Haylee
I'm on the pill and am currently sexually active. I'm on edge because both my grandmother and mother conceived a child while on birth control. I was curious if it could be a hereditary problem that could cause the birth control to become less effective.