Yes, it is possible that you will need to apply to retain your Swedish citizenship after your 18th birthday but before your 22nd birthday.
Please see the relevant documents and information on this website.