you won't need a new registration code, but you will have to enter the codes again. the product activation should be the same, as the hardware won't have changed between installs (one of the common reasons you need a new activation code.)
basically you're starting your windows install from scratch, but on a smaller partition!