www.canada.ca/en/immigration-refugees-citizenship/services/application/application-forms-guides/guide-5553-applying-change-conditions-extend-your-stay-canada-worker.html
Normally, a work permit must be applied for prior to coming to Canada. Only in a few special circumstances presented in this guide can an initial work permit be applied for within Canada:
you presently hold a valid study or work permit;
you are the spouse of a study or work permit holder;
you were previously authorized to work without a permit;
you presently hold a valid Temporary Resident Permit;
you are a refugee claimant or an applicant for permanent residence in Canada under section 207 of the IRPR, or
you are a trader or investor, intra-company transferee or professional under the Canada-United States-Mexico Agreement (CUSMA).