Can the pill mess with fertility?

My friend was on it for six years and had the hardest time getting pregnant. I have an appt today and am thinking of going on it.  I'm 29 and don't want to mess up my fertility. I want a baby, but not yet. What do y'all think?? Has anyone had problems??