It is! It's very common and is totally fine to do. We have an article on our site that talks about this if you'd like to read more: https://www.scarleteen.com/article/gender/is_masturbation_okay_yep