Hello!
When you are a permanent resident, you can live outside of Canada, but must live in Canada for at least two years in a five-year period. If you live outside of Canada for longer, you may lose your permanent resident status.
You should go to this CIC's website...