Yes, DNA and RNA are both nucleic acids, and RNA is synthesized from a DNA template in a process called transcription.