Normally prebuilts come with an OEM version of windows which is not transferable to a new system, often not even to a new motherbd.
So this answer depends on the OEM. Dell, Hp,... and the like are usually Nope.
Builders OEm, like you can buy off Newegg are usually a yes. They won't have 'OEM' in the activation Key.