It's technically possible - Radio Paradise app can do it.
I don't know if there's a generic music player that does, though.
Some apps do this, and some apps don't.
It's actually quite nice to have Spotify, Prime Music, or just a radio app playing music, while the screensaver is on.
In the background of what?