Is it harnful to masterbate?

No. This is natural and perfectly healthy (as long as not interfering with sex with a partner). It is our bodies natural way to relieve sexual tension. Masturbation can also help with sexual gratification as you learn your body.