Nyquil while pregnant

I've had the worst cold all week and have been talking nyquil. I just found out this morning that I'm pregnant so could that hurt the baby?