The primary goal of examining margins of resection is to ensure the complete removal of a tumor. This practice helps in minimizing the risk of cancer recurrence. Inadequate margins can lead to residual disease, necessitating further treatment, which might include additional surgery, radiation, or chemotherapy.