is it okay?

Guys I'm just 16. Is it okay for me to even be masturbating? I think if it's much better than having sex at my age. If so, any tips? That are specific and detailed?