bad insomnia

Be

i’ve been taking tylenol pm to help me sleep at night. is this safe. will baby be fine?