Yes. Apple Music has a browser version, so you can listen without relying entirely on an Apple-only app setup. Apple Music works in a browser, which matters if you want to listen on a work machine, Chromebook, or other device where the main app is not your first choice.
That matters most if you listen or watch on work machines, shared computers, Chromebooks, or other devices where installing an app is inconvenient or blocked outright.