A nucleic acid is made of nucleotides, and nitrogenous bases are a part of a nucleotide.
DNA is a nucleic acid. The nucleotides in DNA are made up of a sugar (deoxyribose), a phosphate group, and one nitrogenous base (which will be either adenine, guanine, cytosine, or thymine).
Hope this helps!!