Besides wiping out the purposes that are there in your phone, you will also lose system updates, if any. Moreover, there might be some bugs and issues as well with your mi device after it is formatted.