Whether having a car is necessary or not depends on where you live. Here in Northern Europe we literally can't reach my or my partner's parents with public transport, because they happen to live in the countryside. For us having a car is not a luxury, it's a necessity if our kids ever want to see their grandparents.
So yeah, making car ownership generally expensive is a bad idea, and would only make Europe's already expensive housing market worse. There are more fair and effective ways to make city centres car-free, and suburb-dwellers to pay their fair share for infrastructure.