Can I take Tylenol Pm while pregnant

P

So I have a cold and am really congested I didn’t sleep much last night I don’t usually take any medicine...... but I have finals tomorrow and I want to be able to sleep tonight so I can be prepared to take them. I can’t seem to find the list of medications I’m allowed to take I feel like I remember being allowed to take Tylenol pm but I’m not sure?