Is it okay to take an antitussive and nyquil at the same time when you have colds?

Probably not. Read the ingredients and see if any are similar. Nyquil does have antitussive properties so it is not advisable to mix them.