Can i Keep my OS if i upgrade my Build

Solution
yes, it is possible but it's little bit tricky.

because windows license is tied to the motherboard. windows activation server creates an unique ID for your motherboard that different with your new motherboard and can't be transferred but can be restored using MS account.

activation restore process will be easier if you're completely wiping your windows, making minor hardware changes, or replacing the HDD with same motherboard, you can restore the activation status easily using your MS account.

try this:
https://support.microsoft.com/id-id/help/20530/windows-10-reactivating-after-hardware-change
yes, it is possible but it's little bit tricky.

because windows license is tied to the motherboard. windows activation server creates an unique ID for your motherboard that different with your new motherboard and can't be transferred but can be restored using MS account.

activation restore process will be easier if you're completely wiping your windows, making minor hardware changes, or replacing the HDD with same motherboard, you can restore the activation status easily using your MS account.

try this:
https://support.microsoft.com/id-id/help/20530/windows-10-reactivating-after-hardware-change
 
Solution


Read and do this before you change any parts:
https://support.microsoft.com/en-us/help/20530/windows-10-reactivating-after-hardware-change
http://www.tomshardware.com/forum/id-3164428/windows-build-1607-activation.html

That (probably) covers the licensing and activation.

You'll probably still need to do a full wipe and reinstall of everything.