You can add music to iMovie from a variety of different sources, depending on the device and type of sound you're adding.
You can upload local music to Spotify by going through the desktop app, but you'll need to sync it with your phone to listen ...