If you have a cold, it can affect how effectively a prescription or over-the-counter medication will work. For example, if you are currently taking the prescription drug Viagra to treat erectile dysfunction, you may find that it does not work as well if you are also suffering from a cold.