Does Bc make you infertile?

I was on the pill for two years and been ttc for 7 months and no luck. I’ve heard it could make you infertile? Anyone hear that?