Yes, hematemesis can sometimes be a sign of gastrointestinal cancers, such as stomach or esophageal cancer. It is important to investigate the cause thoroughly to rule out or confirm cancer and to initiate appropriate treatment.