Yes. STIs gonorrhea and chlamydia can each cause two different conditions associated with testicle pain: epididymitis and orchitis.  Epididymitis is inflammation of the long, coiled tube that transports sperm from the testicles. Orchitis is an inflammation of the testicles. Both conditions can potentially lead to infertility and should be treated promptly.