Is Tylenol pm ok during pregnancy?

I have a long trip and was wondering if it’s ok to take Tylenol pm in the second trimester. I get very anxious and feel that this might calm me down.