If you use DFU mode to update or restore your iPhone, all your data will be erased.