I masturbate only by rubbing the tip of the penis. Is it a wrong way?

Can you masturbate by just rubbing the tip of the penis?