2012 Hyundai Elantra - OK to drive?

have replaced intake & exhaust vvt solenoids check engine light has come back on after being reset code (P00011 vvt sensor bad) is this vehicle ok to drive 176000 mi still gets 35 plus mpg

A p0011 does not neccessarily mean the solenoid is bad. There are other causes.

You can drive it untill the valves strike the pistons