yup, set your timer and "when timer ends" select "stop playing" instead of a tone. it's at the bottom. that option has been there for while now.
I have wanted Apple to put a sleep timer into the music app for years and never knew this existed. I cannot thank you enough for posting this, I am eternally grateful!!