I keep coughing I have ashma and I want to take nyquil would it be ok?

Hard to say. One of the primary problems in asthma is the thickened mucous that seems to always be present. The antihistamine cough preparations like NyQuil can increase that thickness. A product like Mucinex without an antihistamine would be better in theory. Your system may work okay with either.