Ectopic pregnancy?

I just found out I’m 4.5 weeks pregnant. I had lot of painful cramping when my period was supposed to come. The cramping has subsided but it was always most painful or my right side. Sometimes I have some mild cramping on my right side. Is this a sign of ectopic pregnancy?