Student or Learner
Is this sentence wrong?
They moved to Canada after they lived in New York for three years.
You can also say "They moved to Canada after living in New York for three years."
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.