orgasms?

I was wondering if masterbating and orgasms are okay during early pregnancy