Sometimes it's ok to have pain during pregnancy, but sometimes it's not ok to have the pain.
For example, some pregnant women have a cyst called a corpus luteum
cyst, and that can cause some pain. Others can have a tubal (ectopic) pregnancy, which can be life-threatening. It's imperative to be tested to see if you are pregnant, and, if pregnant, what the pain is from asap!