I am not 100% sure. But if you complete a masters in Canada, they will path you to a permanent resident. Key is source funds for that 2 year study. Make sure you can pay for it before you leave. They may have some aid in form of reduced tuition for graduate students.