You can use DNA as a template for testing your primers if the primer locations are inside of exons of the tested genes. If your primers locate at introns or integrated intron-exon areas, you may not have PCR product. Therefore, you need to check the locations of your primers then you will choose using DNA or cDNA as template.