Nope. License code doesn’t depend on formatting or updating your O.S. License code stops working only when you use it on another machine.