I’ve seen a very similar question on here asked some time ago…
On Linux there’s very little difference between a desktop, and a server…
You can serve stuff from a desktop machine…
Linux and UNIX have been like this since forever…
Some “workgroups” would have a bunch of UNIX workstations (e.g. Sun or Silicon Graphics, Data General) networked - and the beefier ones would serve out a bunch of stuff - storage - processing… Some UNIX workstations were effectively X Terminals - not quite dumb, but graphics terminals… I worked at one place (a hospital) that used several Sun Workstations as servers (SparcStation IPX and ELC)… I worked at another place that used workstation class Sun boxes (SparcStation 5 and Ultra 5) as servers for sendmail, and firewalls and external DNS.
You can install a desktop on a server later… or you can disable a DE on destkop to make it a headless server… Many of those UNIX servers ran XDM (X Display Manager) by default - but not the full GUI - many ran what was called CDE if you logged into the XDM graphical login prompt :
But XDM itself didn’t use a lot of resources - and you could leave it running on a server without impacting the headless server daemons it was hosting… Nearly the same thing on Linux…
My JellyFin server - runs Debian 13 - I installed it with Mate DE… when it was ready - I disabled the DE…
A "netinstall’’ of Debian is bascially a server - but you can add a DE later if you want…
Nearly every computing device I have is a server and client on my peer to peer cloud sync “chain”… Mac, iPad, Android, Linux (on intel and ARM)…
And - server or desktop - I ALWAYS allow / install SSHD… why wouldn’t you? I reckon it should be enabled by default… I think it is on Debian, but not Ubuntu… I also run SSHD on my Android phone via TermUX… So my Android phone is an sshd “server”…
Also - when you tunnel X over SSH to run a remote graphical app - you’re making your machine an “X Server” - the terminology can be confusing, but, an “X Terminal” is actually a “server”… A display server…