Yes. You can continue driving for a bit until you reach a mechanic. But driving the car for longer with a burning smell isn’t good. Burning smells are always bad signs for your car.