It depends on the method you choose. Using recovery mode or third-party software will erase all data, so ensure you have a backup. Other methods like using iTunes or iCloud do not delete data.