Yes, it can be done. Probably for a beginner the easiest method is to use Clonezilla.
You can also do a full disk image using the dd
command to an external disk (after booting from live DVD/USB), and restore the image to the target machine - assuming the disk in the target machine is the same size (or larger) than in the source one (in case of a larger disk you will have some unallocated space on the disk after cloning the system).
However, any of these methods require physical access to the server to be able to boot it from a live media.
Also when cloning the system you should avoid using specific hardware drivers (eg. for the graphic card). The cloned system will usually work if you use only generic drivers that come with the kernel, but will usually not work if you use specific hardware drivers (unless the target machine has exactly the same hardware as the source one). But in case of a server it's probably not an issue - such specific drivers are usually used in desktop systems.
Also take into account that after cloning the system you may need to have to adjust some parameters (eg. network configuration) on the cloned server before booting it, to avoid for example IP address conflict.