Is it safe to masturbate when you’re dilated and effaced?

Jw 😋 and can it induce labor or cause dilation?