Coughing indiscriminately can spread infectious organisms. Any person suffering from cough should hold a handkerchief while coughing. The best option is to provide a mask to the person suffering from the cough.
The coughed out material should be disposed off hygienically. This etiquette will prevent the spread of infections of the respiratory tract. For example, influenza.