Cervical mucus

If your pregnant do you discharge cm? Or if your close to your period do you get cm discharge?