Yes that should work. At least it worked for me.
To switch, you then click "create installation media for another PC" in the upgrade program and create a bootable usb stick or burn a DVD.
Than you boot from the usb/DVD and install to your SSD. Done.
Don't do that!
You first have to upgrade from windows 8.1, otherwise your Windows 10 won't be activated.
I did that error and had to reinstall my Win 8 and upgrade. Than you can do a fresh install of Win 10.
(Or do that after you upgraded first)
That's why you don't use one that saves your Passwords on the internet.
The ones that create a file that is on your computer and encrypted are better and safer.