Can I swap an Apple SSD from one laptop to another? I have a liquid spill on my previous MacBook Pro 2014 Retina 15ʺ MGXC2LL/A.
The logic board is dead and fixing it does not make any sense. But the SSD has all data saved and a technician told that it's fine and safe.

If I purchase another MacBook Pro 2014 MGXC2LL/A with same SSD, CPU etc, can I just switch the SSD card? I want to get my profile, apps and all data. 
Or is it too dangerous and it can wipe all the data? I heard that every piece of hardware have their own serial number and I can't just switch them between laptops.
I'm pretty sure it will work by just swapping the SSD. But remember a few things:


You will void the warranty by opening up the laptop
You might break the laptop if you are not experienced in opening it up.


I would just recommend a USB SSD drive enclosure like this one (definitely not the best one but it works). Then transfer all the datas from the old SSD to the new one. Plus you can use the old SSD as an external storage.