New York City's grid plan far predates the automobile: https://en.m.wikipedia.org/wiki/Commissioners%27_Plan_of_181...
Grids are sometimes but not always caused by cities being designed for cars.