You will have to research the requirements for the province you are living in and make your decision based on that, most have conditions you have to meet to be eligible. This is from the Ontario OHIP site:
Who qualifies
With certain exceptions, to qualify for OHIP, you must meet
all of the minimum qualifications listed below
plus at least 1 of the additional requirements.
To meet the minimum qualifications you must:
- be physically in Ontario for 153 days in any 12‑month period
- be physically in Ontario for at least 153 days of the first 183 days immediately after you began living in the province
- make Ontario your primary residence
You must
also meet at least
1 of the following additional requirements. You:
- are a Canadian citizen
- are an Indigenous person (registered under the federal Indian Act)
- are a permanent resident (formerly called a “landed immigrant”)
- are applying for permanent residence in Canada and:
- have submitted an application to Immigration, Refugees and Citizenship Canada (IRCC) and
- IRCC has confirmed they have reviewed the application and that you meet the eligibility requirements to apply (see document requirements) and
- you have not yet been denied
https://www.ontario.ca/page/apply-ohip-and-get-health-card#section-2