Painful cramps/headaches - 18 weeks pregnant

I'm almost 18 weeks and have been experiencing painful cramps the past few days, they only last around a minute and happen 2 or 3 times a day. 
​I've also been having headaches which I never had before.
​Anyone know if this is normal or should I be worried? I just received treatment for a uti last week.