Sex when dilated?

Is it ok to have sex when dilated? ( i’m only 2cm dilated ) and will it help bring on labor?