Only if dried out
Normally mucous moves out of your chest and is replaced by more mucous.
One can produce increasing amounts which becomes increasingly more difficult to clear. However this does not usually remain stationary in the lungs. Occasionally mucous plugging can occur. In that case the mucus becomes thickened and changes into a plug which may have to be removed with a bronchoscope.