The Short Version
Standard biochemical definitions support this statement. DNA and RNA are polymers made of nucleotide units, and a nucleotide is distinguished from a nucleoside by the presence of at least one phosphate group. The only minor nuance is that the number of phosphates varies by context, but that does not change the claim’s core accuracy.