Migrating windows?

if i “repair” the version of windows on my old drive, will it reconfigure itself for the new MOBO?