Yes, you can enter medical expenses incurred outside of Canada, as long as they are eligible expenses within Canada.
Here is more info about Medical Expenses from the CRA: https://www.canada.ca/en/revenue-agency/services/forms-publications/publications/rc4065/medical-expe...