Having a bad oxygen sensor can cause your cars engine to stall, the oxygen sensor is there to detect and control the vehicles fuel to air mixture ratio.
A bad oxygen sensor could cause your engine to get too much fuel delivered to it causing your engine to run to rich, which can cause stalling, rough idling, hard starting and even cause your cars engine to hesitate when accelerating.
A properly working oxygen sensor is a must for great car engine performance.