that is correct, and if I may suggest, DNA is one of the four MACROMOLECULES, and the rest are carbohydrates, lipids, and proteins (which are macromolecules made up of amino acids)
carbohydrates are made up of sugar units and they MUST have carbon, hydrogen, and oxygen, their chemical formula is usually C(subscript n)H (subscript 2n)O (subscript n), for instance, glucose is C6H12O6, and there are three kinds of carbohydrates: monosacchrides, disacchrides, and polysacchrides