No, if your study permit is still valid, you are legally entitled to stay in Canada even if your TRV has expired. If you need to travel anywhere else outside of canada, you need to apply a TRV which enables you to re-enter canada. With a student permit, you can travel but it does not allow re-entry canada. If you need to apply for a TRV, then the closest Canadian Embassy is in USA.