Surgery works best if the cancer is confined to one area or a few specific places. The goal of surgery is to remove the existing cancer cells and, sometimes, nearby cells.