Someone please please help

Hey guys

I am on the birth control pill . And I take it daily and never miss a beat

But for the life of me I cannot stop coughing up phlegm and mucus . And I am worried it will impact the pill’s effectiveness .

I take my pill at noon with water

I’m scared maybe it’ll come up with the mucus or it’ll be ineffective?