Why after smoking I won’t stop coughing and having a croaky throat

moking weed for the first time in a while and it was amazing as I used to but after a few days I still can’t stop coughing plus my throat is sore plus my voice is still really croaky. My question is does it go away? Edit I coughed my lungs up till I threw up and it went away somewhat