Yes, if you regularly back up your data to a cloud service or another device, you can recover your data after a factory reset.