Umm, no. I guess I can see how some people might say that, but to me, saying that masturbation counts as celibacy is akin to saying oral sex (anal sex, mutual masturbation, etc.) isn't sex.
IIRC there is a distinction made in canon as well, but I don't have the scans to back that up.