Depends on if you are clean reinstalling the OS or if you are just refreshing the OS. Clean install or factory reset, you will lose all your data. Refreshing you will not lose your data. Either way you should back up before you do anything so you for certain wont lose your data.