Only if every car has only one person - once you start getting 2 or more people in a car, driving starts to win[0] (and that's discounting the heavy multiplier you get from things like coaches and buses.)
[0] https://terrapass.com/blog/carbon-footprint-of-driving-vs-fl...