Masturbation.

Dear Sir, I am 18 male, my query is that I masturbate once or twice a week by rubbing my penis on a pillow. So is it okay to masturbate like this or will it harm my sexual life in future. Please help me out sir.