Not necessarily, you could tax the production/sale of goods that usually contribute to garbage.
For example in Germany, it's mostly the producers of goods who have to pay for disposal of corresponding (packaging) waste, thereby creating an incentive to reduce packaging or rely on reusable bins etc.
https://en.wikipedia.org/wiki/Green_Dot_(symbol)#German_dual...