Stomach pain after sex

Some times after sex I’ll have a severe stomach pain/discomfort, almost like a cramping. It doesn’t happen every time but when it does it’s pretty painful.. is this something I should get checked out? Does anyone have any ideas on what it could be?