Good nutrition is especially important if you have cancer because both the illness and its treatment can affect your appetite. Cancer and cancer treatments can also affect your body's ability to tolerate certain foods and use nutrients.