There is always expiry date on the immigration documents, which tells us when to stop the specific purpose of visit and leave Canada. For example, if you have study permit, there must be expiry date that will tell you to stop studying and leave Canada. However, you can always extend your permit, if you have valid reason for staying.