Depends on the car.

I have that problem on my neon when the MAP sensor goes bad. The MAP sensor goes bad and messes up the A/F mixture which in turn confuses the ECM when the O2 sensor starts telling it it's not right.