You can use the old hard drive just fine. You however cant use the windows install on the old hard drive. This will not only at best be unstable to worst flat out not work, but it will also be against Microsoft license agreement.
So in short you can take your old hard drive, put it in the new computer, wipe it and install the windows OS you bought.