Can I keep the OS as-is, on swapping SSD on compatible Macbooks?
Yes, you can replace it without reinstalling the OS and keep the data. 
The only issue you can face is a long time first boot.

But I recommend you to backup both disks to external drive like a Time Capsule or external hard drive before replacing.