You can and if you're switching between computers all the time and don’t want to keep swapping cables, you can use a KVM switch, which will allow you connect your monitor, keyboard and mouse into it and then switch between which computer you want to use.