If you are not an EU citizen and will be studying in Sweden beyond 90 days, you will need a residence permit. Do note that you must have a residence permit issued to you before your arrival in Sweden.