Cancer can directly or indirectly affect the digestive system. Tumors in the gastrointestinal tract can obstruct or compress organs, leading to issues such as constipation or bowel obstruction. Additionally, cancers that metastasize to the digestive system can disrupt normal function. Moreover, certain cancers release substances that affect digestion.