Yes cancers can be detected and also biopsied to confirm the diagnosis during these procedures. Tissue samples or biopsies obtained from endoscopy procedures can be used to detect cancer of the oesophagus, stomach, colon and other areas of the digestive system. These tissue samples are sent to laboratories for testing and will determine whether cancer is present.