Ok to take these together?

I took uristat for my uti but I’m also on my period and want to take advil, will they be ok together?