If your study permit expires before you have completed your program of study, you will need to apply for a renewal.
You must apply for a new study permit before the old one expires, and it is generally a good idea to submit your application at least 30 days before your current permit expires.