It is okay if you are okay with it! The rule is "No artifical stimulation", no porn, no pics, no erotica, whatever...
That's the most important part for rebooting.
BUT fapping without porn should only be from time to time to get rid of the built up sperm. It must never be as a meaning of coping, to relax etc. And never with porn fantasies, only fantasies of real sex.
You have to learn to deal with stress etc in other ways, more healthy ways, than masturbating.
But I really hate it, when I get so freaking horny when not orgasming for a longer period of time, because I start to look after every woman and can't think of anything else, so I think it is more healthy, to just masturbate. I do it maybe once in 20 days.
Oh, and no edging!
But there are also people who swear on nofap and won't masturbate at all. One thing you should keep also in mind is, that your dick is used to your hand and it has to get used to vaginas. So one user wrote about how he only uses two fingers to masturbate instead of the " death grip" (very acurate term indeed). Often porn addicts can only get a boner with HJ and you want to get this out of your brain.
But most important for people who are over three months is rewiring with a real woman I think, so in the end you should search for a woman you can have sex with, but as long as this isn't possible, I think masturbating is okay, as long as you keep the points I mentioned in mind. =)