Pelvic pain during sex

Hey ladies! Occasionally when my husband and I are having sex I’ll get sharp pain on the right or left side of my pelvic area. It’s usually only one side or the other. Has anyone else had this happen? It doesn’t happen every time we have sex.