Surgery is often the first line of treatment for many types of cancer, particularly when the tumor is localized and has not spread to other parts of the body. It is usually recommended for cancers such as breast cancer, colorectal cancer, lung cancer, and skin cancer. The decision to opt for surgery depends on the type, location, and stage of the cancer, as well as the patient's overall health.