Studies have disproved this idea. It is highly unlikely that getting a vasectomy increases the risk of prostate cancer.