Infertility

Can having an STD such as chlamydia and gonorrhea for over a year affect male fertility?