Yes, your PC can be used as a server. For “terminal” access you'll need a OpenSSH Server installed on your PC. sudo apt install openssh-server.

Ubuntu VPS Hosting via Ubuntu desktop as terminal server.