cough medicine

So I read on the cough medicine package that you shouldn't take it while pregnant. I am not pregnant but I am however trying and I just came out of my fertile window. I had cough medicine last night as I needed it. Can this still be bad when you're trying to conceive?