If you have masturbated, don't be too nervous. Medically speaking, proper masturbation is basically harmless to the body.
But if it is excessive, it will be harmful and more likely to regret it for life, so it is generally controlled once every two weeks or once a month.
You are only 18 years old now. If you can quit or control the number of masturbations, it should be harmless to your health.