Not that I think it’s irrelevant, but it’s a pretty hard thing to figure out what to do with. He was bad. Some of his poems are good. Some are “sketchy.”
The bookening deals with this sort of problem somewhat regularly. Dickens was wicked, too, and you can’t expect it to not affect his writing entirely. But we still read Dickens.
But the extreme end of this spectrum is the Donatist heresy, which insisted that the sacraments were invalid if performed by pastors that repudiated the faith under persecution.