If you’ve fixed the issue that made the CEL come on, it can turn off by itself after driving for a while. But sometimes, you’d have to manually reset it either by disconnecting the battery or using an OBD2 scanner.