Your data, such as your playlists, will be saved even after you cancel your Nintendo Switch Online membership.
You can continue using some Nintendo Music functions, such as editing, sharing, or deleting your playlists, even after you cancel your Nintendo Switch Online membership.