Usually, yes – after a set number of years of legal residence, typically five to ten depending on the country, as long as you keep meeting the ongoing requirements.