Mac mini as an upgrade for an older iMac
I have a 2012 27-inch iMac. Running High Sierra 10.13.6. In lieu of buying a new iMac could I buy a mac mini instead and just use my current iMac's display and my wireless keyboard and mouse to effectively upgrade?