Yes. YouTube Music works in a browser, and for many users web access is a normal way to use the service rather than a fallback. YouTube Music works well in the browser because the service already sits close to the web-native YouTube ecosystem.
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.