Thanks for query,
by any means is not harmful but the way you are doing is much more.
keep your this habit in control
Give attention in your study,do not think much about sex.
have good friends and pass some time in the sports and see some entertaining sereals in tv.
Ok and bye.