Of course, you can. But I think you need to get a good tool for help and then the recording process can be accomplished with half the effort. You can try the AudiCable Audio Recorder. I love it so much for it is multi-platforms supported. Well, you can record songs from Spotify, Apple Music, Amazon Music, Tidal Music, and more other sources if only you have an account. The steps are simple.
1. Run the program and set up the necessary output settings. For example, set the output format as MP3 of 320 kbps.
2. Play the songs you want to get and AudiCable will automatically begin to record the songs.