Might be pregnant, can I take cold medicine?

My next period is on January 20th. I won’t be able to test until Thursday at the soonest and have caught a cold! :( if I were to take cold medicine, would that harm it at all?