Dear XXXXXXX
Thanks for your query.
No, masturbating doesn't affect your height by any chance. You need not worry about the same.
There can be some amount growth in height till the age of 25 years; do wait patiently. There are high chances where you can inherit your father's height. A good exercise including pull-ups will surely help you in the natural way.
Do not take any medications or hormonal treatments available in market as their success is not assured and can cause undue damage. Maintain good nutrition with ample amount of multivitamins which are essential for normal and healthy growth process.
Hope I answered your query. Please let me know if there are any other concerns.
Regards,