No, while it will remove apps and data, your phone will revert to the latest version of Android you’ve installed after it’s been reset.