Might be a stupid question

I'm 5 weeks and 3 days I have heard different thing when it comes to masturbating early on in pregnancy. Is it okay to masturbate or not? Help!