Costs may be any of several factors. Purchase price is one, but that's relatively minor. Insurance, registration, parking, fuel, requirements to have (or have in the car) child-safety seats (an expense themselves, but also taking up room in the vehicle, possibly for little effective safety, see: https://freakonomics.com/podcast/car-seats/), smog and other inspections, etc., etc.
Eventually a tipping point is reached, and not using or even owning a car is the preferred option.
Given the role of land use, transit, and other private-ownership alternatives (including ride hailing services / taxies), that's not a simple matter of price. But a set of policies working in concert can effect that kind of change.