There are lots of things to consider when you are going to study in another country. Quite apart from the practical considerations involved with planning where you will live for the duration of your stay, you will also need to pay proper attention to legal matters, including the need to make sure your passport and visa are fully up to date.
It is quite common for a student visa to expire during your stay abroad, especially if your course is running for a year or more, so it can be a good move to find out in advance what you need to do when it does. This is likely to vary from country to country so the best idea is often to go to the relevant source of information for the country you will be staying in to make sure you know what to do and when you need to do it.
You can meet with problems if you forget to get a new visa and you suddenly find your old one has expired; while you won