Does a vacuum leak cause a misfire?

Yes.I have a 00 olds alero 4 cyl had rough idle when in drive felt like it was going to die when stop.did every emission fix still rough.took to shop it was reading misfire and my Trac off light kept illuminating guys at Mathis the coolest mechanics I've met.guy check my Vacum hose placed his finger on it walaaaaaa.found the problem the hose was rotted when he touched it the car almost died.drove home best my car has ever riden