I drove one of my trucks to 280,000 with an engine light coming on and off occasionally. I had the code read and it was some BS sensor so I ignored it. The truck never lost power and mileage stayed consistent.
No problem if you’re in a non-inspection state.
But no-go if you aren’t