If your ship gets destroyed you will get a replacement, however, you will lose anything fitted on the ship and its hold contents will be scattered as adrift or potentially destroyed.
There is also a chance some crew may die and some of your factors will change.