Orgasm

Is it ok to have an orgasm while pregnant? In the beginning it gave me bad cramps so i quit "having them" but if its safe, I'd like to try again. Any thoughts?