If I restore factory settings on iphone 5 will all my saved text messages be lost from the phone?

If I restore factory settings on iphone 5 will all my saved text messages be lost from the phone?

Restoring factory settings (Erase All Content and Settings) removes everything from the device, there will be no Apple ID on it, no texts, calls history, contacts, apps etc, everything will be deleted

Thank you very much that puts my mind at ease