Can you plug HDD into new cpu and MOBO

When you get a new m/b and cpu you usually have to reload windows from scratch unless its the same exact m/b then sometimes you can get away with just using the old drive as is . I would recomend re installing windows. if the old drive will be your boot drive.