Pain medication during periods

S • Hubby n me waiting for our first one☺
I have a cramping feeling during my periods and I have been taking spasmodic tablet and although the number of tablets I take has reduced I still need them. I am ttc from long time no medical problem for both of us do u think taking these tablets as affecting my chances?