Depends on the error, but if it was cause of the holed exhaust it should go out by itself eventually. Same if the garage clears it, it may not come back on instantly, again depends on the code. I changed an exhaust and O2 sensor on my classic sport and it took a few miles for the engine light to go out. I was worried for a while. For example it may need X amount of passes before it will decide to turn light out. Same when light goes on, with some codes it needs to error X times before it will decide to turn light on.