You would need to flash the Stock Official Pie from here but with the non-Home CSC which will do a factory reset wiping all info on the phone.
---------- Post added at 08:46 PM ---------- Previous post was at 08:45 PM ----------
Yes, but I recommend doing the OTA updating in the phone...