~fap, fap, fap, fap~
Sorry... I was busy masturbating. What was the question again?
(kidding;-)
Yes. I'd say it's okay to masturbate. Don't "go to town" too much (IE: take it easy the first time and see how you feel).
You had a minor procedure (relatively speaking, of course), and as long as there were no complications, and your doctor didn't specifically advise against self-manipulation, you should be alright.
Okay, where was I...
~fap, fap, fap, fap~