No, you don’t need a premium account to use sleep time. The function is available for all Spotify users.