yes you can, but windows will ask you to activate. If your copy of Win10 is retail, probably you can transfer the activation to new mobo, but if OEM licence, can only activate once and tie to that mobo.
Change hardware Mobo/ram, what happen to installed window 10 @ SSD