Yes, DNA is present in chocolate.
Chocolate is derived from the beans of the cacao tree ( Theobroma cacao), and as a living organism, the cacao tree contains DNA within its cells. Therefore, chocolate, being a product of the cacao tree, will inherently contain trace amounts of DNA.
While the DNA content in processed chocolate is likely to be fragmented and degraded due to the manufacturing process (fermentation, roasting, etc.), it is still present. The cacao tree's genome consists of 10 chromosomes, smaller than the human genome, which has 23 chromosomes.
In summary, because chocolate originates from a living organism (the cacao tree), it contains DNA.