Maybe, there are loads of computer operating systems, processor makes/models, along with other hw differences, that’s without getting into the question of licensing. Any one or combination of these could cause an issue so if attempting it I would ensure I had a tested backup prior to attempting if there was any data or configuration I cared about.
Is there a driver to not do a clean os installation & restore and local data?