Depends on the sizes of the drives in question.
your new drive might also come with software that would do this for you automatically - check your support page. I know samsung did, but I only noticed that after I did the whole thing another way. However, this should be first thing you should try.
If the SSD is bigger, just image it over - windows backup, clonezilla or whatever you're comfortable with will work
With a smaller SSD, you'd need to make sure your new partitions fit into the space on the SSD. Unless your backup tool explicitly can restore to a smaller disk, backup (for safety's sake) and resize first.
If you have resized, you might be able to to backup and restore using the built in windows system image backup, but I didn't go that way.
When I did this I did a full backup (I used veem endpoint backup ), created a restore USB to boot from popped in the SSD, then restored the drive to the SSD. I'd had the backup stored on an external HDD (Usb 3.0 for more speed!) but depending on your system you could mount it directly. While the SSD was smaller than the old hard disk drive, I had an option to resize the drive so I made the system partition smaller, kept the other drives as is and restored that way (which was handy and is a feature you'd want to consider).
Your SSD might come with some software or suggested settings to optimise your OS for working with an SSD. Run it.
Its been a while but you need to pick advanced settings and that should let you set where each partition goes manually.
As a bonus, you can start backing up regularly, and if something goes wrong, you have your original drive and a backup.