Tylenol for pregnancy ??

Is 500 mg of Tylenol pills okay for pregnancy? I have a huge headache