You would want to wait until you build the new PC to install Windows; or perform a clean install after you build the new PC. While taking a drive that already has Windows on it and putting it in a system with different components may seem to work, it usually leads to problems related to driver issues.