can I still orgasm ?

I was told by my OB no sex cause I had some episodes of bleeding and on pelvic rest. But can I still have an orgasm EXternally with nothing inside me? Sorry If this sounds dumb. Second pregnancy and never been on pelvic rest before lol