I say yes. It´s much better not to hunger yourself over weeks just to relapse regularly and afterwards being frustrated about, that you are not able to get your urges under any control. Avoid or get free of the porn addiction should be the primary goal. Even Napoleon Hill detected that for most men under 40 it is very difficult to control their sexual needs like catholic priests. Without the porn stimulation you can find a way to release the sexual pressure by moderate masturbation. I do not believe in this zealotry like "No,no, never touch your own weewee for pleasure!" But you can acquire much more control and confidence over your life circumstances generally, if you can save that energy for real partners you do adore, instead just wasting it for momentary solo reliefs, like following an acute urge to piss.