Thinking of upgrading my motherboard to get a better CPU and ram. But I'm new to doing the upgrades myself. Does the SSD that I have Windows installed on work out of the box with a new motherboard? Or does windows need to be reinstalled?

Basically, if I move my SSD over to a new motherboard will Windows work right of the bat, or does it need to be reinstalled?

Is the installation only to the main SSD or does the motherboard get Windows installed as well?