Could UNIX can run without the desktop?

If you are referring to the desktop as being a graphical user interface then Unix is capable of running without it. A GUI was a more recent addition to Unix, meaning that the earlier versions just used a command line and had no desktop environment at all.

Today, you can install versions of Unix or Linux that do not have a graphical component at all, and several administrators (such as myself) prefer not to use a desktop.