This does generally work, but it requires a lot of manual effort to setup the environment correctly with Xcode's SDKs to satisfy the compiler / linker.
That doesn't mean that this is a scalable solution for running our business on, but for the occasional one off mac build to make sure it's not fallen behind, it works just fine for us.
In some other countries I have seen an iMac been shared across teams that would take turns at the device.
In Germany I would state the same statement, we live between Windows and macOS on the office, but I also have some care for those that aren't so lucky.
[0]: https://github.com/apple-cross-toolchain/rules_applecross