For some people, it may be safe to use cough medicine during pregnancy. However, medicine can affect everyone differently, so it may be wise to contact a healthcare provider before using any type of over-the-counter medication.