No, prostate cancer is not a cause of erectile dysfunction, but treatment for the disease may cause the problem.