Does endoscopy really help the surgeon evaluate gastric cancer?

Does endoscopy really help the surgeon evaluate gastric cancer?