Mucus plug?

Can you start losing pieces of your mucus plug as early as 27 weeks? And if not what could this be?