My 2000 Honda Civic shuts off?

While going down the road and the interior lights will flicker. The check engine light is on so I took it to advance auto and they said that I've got a bad transmission sensor and a bad O2 sensor. Would the transmission sensor cause the car to shut off while driving down the road?

No and the bad 02 sensor won't either.