Can I have sex after my membrane sweep?

I had my membrane sweep today at 39 weeks and trying to go into labor. Is it safe to have sex a few hours after?