At a minimum, yes - but a clean install is highly recommended.
With a change to both the CPU and motherboard though, it may not activate.
Windows 10 allows "significant hardware change(s)", but they do not expressly define what that is.
Realistically, it's a new CPU + Mobo combo may well go beyond a hardware "change"..... but the only way to know is to try.
The Windows 10 activation troubleshooter would allow you to talk to MS, who may force an activation for you, if it doesn't do so automatically.