Did you ask the service department if it would be ok to continue to drive the car?
My SOP is absent the engine acting up acting abnormally and with just a steady CEL I will pull the code and if it is one I'm familiar with and know something about I will continue to operate the vehicle.
A new code I'll do some research or more likely run this by a senior tech at the local dealer.
More than that what I do is use an OBD2 scan tool to read all the codes, and any pending codes. I write down all the codes, and the freeze frame data (associated with the code that triggered the CEL) then use the scan tool to clear the codes and resume driving the car.
(The one time with no active code but the engine running poorly I checked pending codes and found one related to the variable intake cam timing system. I cleared the code and after the engine was shut off then restarted the engine ran normally. But I hightailed it home ASAP always prepared to if the engine started acting up to get the car off the road and stopped and the engine off as quick as I could manage.)
Often after clearing the code/codes the CEL remains dark. (With one car this was because for some few years the car had a loose converter "brick" in its exhaust system which would occasionally trigger a P0430. But the code was quite infrequent maybe just a few times a year.)
With another car with an O2 sensor related code which popped up right after I gassed up the car and restarted the engine -- and this after having driven over 150 miles with no issues -- I cleared the code and drove on. After around 150 miles stopped for gasoline again. Upon engine restart the CEL was back on. Same code. Cleared it. Drove on. And at the next fill up same thing. Made it home and booked the car in to have all 4 sensors replaced.