Certain types of cancer can affect the digestive system. Some examples are:  Anal cancer. Colorectal cancer. Esophageal cancer. Liver cancer. Pancreatic cancer. Small intestine cancer. Stomach cancer.