Sexually transmitted infections can lead to inflammation of the prostate gland. However, there no firm conclusions whether they can cause cancer.