Sex at 4-5cm dilated?

Is this still okay? I’ve been on Pelvic rest since 23w so at 37 we got the green light but hubby said he felt like a squishy ring around him at the back then something super hard (I could only imagine it being our sons head 😐)

I had the bloody show 2 days ago but membranes are still intact.