No, having a vasectomy doesn't increase your risk of prostate cancer.
Researchers have conducted many studies on this subject. The best current evidence indicates no increased risk of prostate cancer after vasectomy.
If you're concerned about your prostate cancer risk, talk to your doctor about possible symptoms and screening tests. You may have an increased risk of prostate cancer if you're African-American or if you have a close family member with prostate cancer.