Yes. And it just works. Gnome is not at MacOS levels of polishing but you get a proper dev machine instead of a pretty SSH terminal into your real dev machine.
For server side software the deployment environment is overwhelmingly Linux making Linux also the most straightforward choice for the development environment. Its not a slight on MacOS, its tooling might be just as wonderful as the Linux one for deploying on MacOS.