Ventolin according to doctors can safely be used for coughing, Wheezing etc even when you're not having an asthma attack.
Just don't use the Ventolin more than you should because it could cause some bad side effects.
I would first try other cough remedies such as over the counter cough medicine, inhaling steam, drinking warm tea with honey or taking a tablespoon of honey as a natural cough medicine and even taking a steamy shower to help with the cough.
If those don't work as good then using some Ventolin in small doses is okay for a cough.