The pill

I’ve been on bc for about 2 years now bc of my period. I haven’t experienced that many symptoms expect I’m way more sad and my sex drive is through the roof. Although I’m not ready to have a kid any time soon my biggest dream is to experience pregnancy and be a mom one day but lately I have been hearing that the pill can cause infertility. My doctor has never mentioned it to me but is it true?