That’s what I did (and with one USB cable swap and a button press on the monitor, I can switch keyboard, mouse, monitor, speakers, and camera between them).
But the key for me is I do that because I have a work laptop and a personal desktop and I want no question about the ownership of things I do on the desktop.
This. Employers tend to give out laptops for home use, not desktops. I'm not about to use my personal desktop for work, or my work laptop for personal stuff.