It depends. If the cough has lasted for 3 weeks or more, then it could be a symptom of TB.
TB is caused when a bacteria (called M.tb) is spread in the air when an infected person coughs. These bacteria, when inhaled, then travel to the lungs and spread the infection.
If you have had a cough that has lasted for 3 weeks or more or if you have been with someone who has had TB or you work somewhere where the risk of getting infected is higher, it’s best you get yourself checked. Remember, TB is treatable by medicines but only if you don’t treat it as a regular cough.