While it's an option and certainly preferable to on street parking in high density areas, it's also prohibitively expensive unless 1) the city is well off and 2) the majority of residents are using alternate modes of transport that require far less expensive infrastructure.
A good example of this is the Albert Cuyp garage, which has parking for 600 cars at a construction cost of around €60'000 per car. In contrast, the bike garages being built around Amsterdam's central station will have parking for around 22'000 bikes at a cost of around €4'000 per bike.
It's also worth noting that public transit does not require huge parking garages, and bikes can generally be parked on the street without issue.
Not aligning with the United States does not socialism nor anti-imperialism make