Yes erasing the SSD (or HDD) completely will erase the OS.
How you recover or reinstall depends on the age of your machine, you might have internet recovery or need recovery disks. Best is to download a copy of the installer and create a bootable USB drive using DiskmakerX