Creating a music player

Yes it’s certainly possible, you can check out the API reference to learn stuff suited to your needs [API Reference - Streamlit Docs].
You can also check out the component [Streamlit Player].