Tylenol for cramps?

I lost my mucus plug last night and have had non-stop menstrual like cramps since. Can I take Tylenol for this? I am about 39 weeks, so wasn't sure if it would affect contraction counting if I go into labor.