Sex hormones are steroids (fat soluble compounds) that control sexual maturity and reproduction. These hormones are produced mainly by the endocrine glands. The endocrine glands in females are ovaries and those in males are testes. While both males and females have all types of hormones present in their bodies, females produce the majority of two types of hormones, estrogens and progesterone, while males produce mainly androgens such as testosterone.
DNA does not directly encode hormones, but it does encode enzymes for synthesize those hormone. Therefore, when and how much hormone is synthesized is under the control of DNA.
DNA also controls syntheses of enzymes for lipid.