Sex after a pelvic exam?

So last night I went to L&D I was concerned that I might have been leaking amniotic fluid. They saw me right away did a pelvic exam and checked babies heartbeat. Everything was all good no sign of any fluid. My question is can I have sex today or tomorrow? Or do I need to wait because of the pelvic exam. Everything has been fine and normal since. I'm assuming they would have told me if I should avoid sex?