Can bad gas cause your car to misfire?

Contaminated fuel could cause a misfire.