Exercise while pregnant

Is it okay to exercise and workout on your stomach while pregnant?

Which trimester should you stop?

Should you stop when you feel like your cramping or is that normal?