Hey there, welcome to the Spotify Community!
This is a great benefit of using Spotify. If you decide to downgrade to a free plan, your library will stay the same. You do not need to worry about losing your content.
Let me know if you need help with anything else.