Most often, surgery is a treatment for early-stage prostate cancer that has not spread to distant sites such as bones and lymph nodes. In this case, the goal of surgery is to remove all the cancer.