While it's best practice to reinstall windows with every part change, what you want to do is still possible and is called cloning. there are lots of applications that do it, and actually lots of times you get it with your ssd, like samsung migration, or similar.