I'm a little torn on this one. It feels similar to how a lot of US states use taxes generated from gambling/vices to fund schools. So you're basically making the next generations future dependent on other peoples vices.
But that assumes you consider porn/OF a vice like gambling and drugs/alcohol, which maybe isn't quite a one-to-one.