No, you can't directly put music from Spotify on a flash drive, because the music from Spotify has DRM which makes it unplayable except by your particular Spotify app and account. However, it is possible to remove DRM from Spotify files with a program, though this may be more trouble than it is worth.