Yes, as an international student, you must apply for a residence permit to study in Sweden. The Swedish residence permit facilitates your legal living and studying. You must apply for a residence permit if your study program is more than three months long.