Yes, between the age of 18 and 22, you may need to apply to retain your Swedish citizenship if you have never lived in Sweden.
More about citizenship on the website of the Swedish Migration Board