I would advise that you buy either:
- an external 2.5" USB3 enclosure, or
- a USB3/SATA "docking station", or
- a USB3/SATA "dongle" adapater
Once you have one of these, along with the SSD, do this:
1. Put the new SSD into the external enclosure/dock/dongle
2. Connect it to the MacBook
3. Initialize the SSD using Disk Utility
4. Download CarbonCopyCloner if you don't already have it
(CCC is FREE to download and FREE to use for 30 days)
5. Use CCC to "clone" the contents of your internal drive to the SSD (CCC will also clone the recovery partition)
6. Once the clone is complete, power all the way down (leave external SSD connected)
7. Reboot and hold down the option key until the Startup Manager appears.
8. Select the SSD with the pointer and hit return
You should now boot from the external SSD.
Do you get "a good boot"?
If so, power down and "do the drive swap".
Do it this way, and you "prep and test" the SSD while you still have a bootable MacBook.
Things can get painful if you've already swapped the drive, and then can't get a good boot.
You can use the enclosure for the original internal HDD when done.