It works as long as you’re willing to stay current on Apple hardware. If you’re not… then macOS probably isn’t for you…
If I really wanted to I guess I could run linux on these and use them for something, but I never do (I have one server in my house, it's enough). I upgraded the hardware for a reason.
Secondary devices for particular purposes have fallen out of updates now and then