You can't stop masturbating to porn (pmo), you can cut down though, decrease significantly. But to stop for good? It's not possible, you will have relapses sooner or later, the goal is to keep the relapses as short as possible.
Nothing wrong with watching porn from time to time, it's like eating...