Does Coughing Up Phlegm Mean I Getting Better?

Is it a good sign when coughing up thick mucus?

.