no. if it did it would be rare for men (most of whom regularly masturbate) for prostate cancer to occur at all. masturbate if you desire but don't count on it preventing prostate cancer.
does masturbation reduce the chance of prostate cancer?