Oxygen Sensor means nothing. There are dozens of codes related to oxygen sensors that can be caused by the sensor itself, worn catalytic converter, bad wiring, a vacuum leak, etc,.
You need to get the actual code before I can say if the car is safe to drive or anything else about what is...