No! Like all types of sex, you should only do it if you want to. Some people feel it is against their religious or cultural beliefs to masturbate, and that’s okay.
How you feel about masturbation and sex will change throughout your life. Sometimes you may want to do both, one or the other, or neither. All of these things are fine.