Yes, that's how governments and taxes work. The entire nation pays (at various levels depending on their income/resources) collectively to provide public services that cannot easily be provided on an individual basis.
In the Free Market similar approaches are used for things like insurance.
In the Free Market similar approaches are used for things like insurance.