Well first part is correct but for second part ie when you move to Canada from USA, there different rules applicable in the year of your move out of USA. When you move out of USA you get 2 options when you file your USA Tax returns.
1) Dual Tax Returns - File tax as a Resident from Jan to March...