can you still drive with a bad camshaft position sensor?
If the engine appears to function normally, as before, it is likely OK to drive it. However, if the engine starts to misfire (you would see a flashing check engine light) then it is NOT OK to drive it all without risk of damage. Diagnostic Trouble Codes can never be used to "directly" condemn parts.