Yes, an AC will control the humidity of the room. Room air contains moisture when the moisture level is either too low or too high it causes poor indoor air quality. It will also result in mould & bacteria growth and the spread of airborne illnesses. Most of AC has a Dry mode which removes excess humidity from the room. This mode is very useful near the coastal areas. Ideal humidity of any area is around 40-60%.