After baby

I know you aren’t suppose to have sex until after about 6 weeks postpartum. Is it okay to masturbate before 6 weeks though?