In a nutshell yes.
Who gets paid depends on which carbon offsetting project you have in your portfolio of schemes.
There are companies set up to offer this service so anybody can can contribute. They offer calculators to work out your carbon footprint, offer ways to reduce it to as little as possible and then then work out a cost for whatever extra there is which you pay them and that goes to wherever they have a tree planting or other projects that will reduce the amount of carbon released into the atmosphere.(probably)
Another "bonus" is that as a lot of the projects are non-profit organisations the amount you pay is more than likely to be tax deductible.
a quick google of carbon footprint offsetting will give you endless info on this.
By the way obs if you are offsetting the pollution with these projects are you really polluting the planet or having no effect at all? 🤔