Yes, you can install ESXi on a desktops. You may encounter issues when it comes to drivers as consumer grade hardware isn't supported by VMware but it works most of the time. You can also install ESXi in virtual machines in VMware workstation or VirtualBox.