No one denies this may happen. If one has cultivated an ”interest” in pornography, one does wrong. Each time One chooses to dwell on pornographic thoughts or to consume pornography, one does wrong. If One recognizes these wrongs, repents of them and then works to abandon the wrong acts, one does good. One may continue to have thoughts and temptations, but these are not sins unless One chooses to act - eg by dwelling on those thought or consuming pornography.
While SSA is not directly comparable - the principles is the same. One must knowingly, deliberately, consciously choose evil to sin.