Muscle memory does exist, it happened to my cousin. After 3-6 months the muscle will decrease in size but as soon as you hit the gym again your body will remember and you will quickly gain everything back, it's a lot easier to gain your muscle back while you are young so i wouldn't worry too much about it.