I wouldn’t do it this way. The virus could easily spread to your new HDD. A better way would be to back up your data to a CD first – scan that CD to make sure it’s not infected, then transfer the files to your new HDD.