1. First of all...it you're going the Kaby Lake Z270 route as you indicate, it's a near-tragedy that you won't be utilizing a SSD as your boot drive. If it's at all possible, purchase a SSD (not less than 250 GB/256 GB) that you can use as your boot drive. You'll never regret it. The new system will cry out for a SSD, capiche?
2. If that's not possible, at least consider Win 10 as your OS. Unless you're working with apps that demand Win 7, at this time Win 10 is the OS of choice with a Kaby Lake build.
3. If you must go with Win 7 & a HDD (and it pains me to think of that configuration), it's possible you may (repeat, may) have a bootable drive with your present HDD. It depends on a number of factors that I'd rather not go into as this time. But it IS possible a mere transfer of the HDD to the new system will work in that the system will boot to the OS. If it does, you will need to install whatever necessary drivers are called for by the system which, of course, will be available from the motherboard's driver installation CD. Again, it's something of a crapshoot, but you can't tell unless you try it.
4. If you do want to try what I've outlined in 3. above, it's a good idea to clone the contents of the HDD BEFORE you attempt the transfer operation. Should the transfer operation fail (and there's a good chance it will), it frequently happens that changes have been made to the HDD during the transfer operation that could result in an unbootable system in the "old" PC. If you're not concerned with that aspect then it's of no import. But if this is a consideration, make a copy of your present HDD system BEFORE undertaking the transfer. Capiche?