Yes, you need to buy Windows 10 when building your PC or another operating system and installing it. Your specifications should determine the operating system you install, but Windows 10 is currently the simplest to obtain and install with little to no assistance.