Yes, it would be best if you used the Ubuntu Server ISO instead of a desktop ISO file. This file does not include a graphical user interface by default. Thus, you can easily install your system on your server without a GUI.