sure you can do it.
just remember Montreal downtown is like an hour. where do you live? where do you think to live? please, don' t respond, just to guide you.
There is a train, you could commute.
exo1 Vaudreuil-Hudson
https://exo.quebec/en/trip-planner/train/vaudreuil–hudson
As a Permanent Resident, you can live and work any where in Canada. Just keep you Ontario's health care for 3 years, then you could ask for Quebec's Health care (Maladie).