short answer; yes. I cant remember the exact reason, but I do remember that this is the case.
A vacuum leak could cause that. The year, make and engine info would help us help you.
You've run out of fuel...
On a 1994 Buick LaSabre why does the engine continue to rev up while driving even when the brake is applied ? or when driving why doesn't the engine return to idle when the brake is applied? I would check for a vacuum leak
Gasoline pedal/air intake pedal
A 350 engine will idle good but cut out and run rough while driving if there is a vacuum leak. This causes too much air to enter the engine under load.
The most common cause for surging is a vacuum leak
get an engine diagnostic scan.
Bad gas, fouled plug(s), engine out of time, vacuum line leak or clogged.
Stalling at idle? Immediately after starting? While driving? While stopping? Cold or hot engine? What engine do you have?
Blue smoke is caused by engine oil being burnt by the engine.
could be the timing belt
On some car yes it will.