Yes, you just need to prove you have valid status in that country and that you have strong ties to your country of citizenship, since you're expected to return there at the end of your studies. This can be harder to convince the visa office of if you haven't been living there.