Mucus plug

If i loose my mucus plug and im having some contractions havent timed them but they are pretty distant at 38 weeks does that mean ill be going into labor? Should i panic its alot a of mucus that came out i feel like im still discharging