No, your diet does not affect your DNA. Aside from no food or drink for just 15 minutes prior to collecting your DNA sample, there are no restrictions on your dietary intake.
This also applies for the celiac disease and lactose intolerance DNA tests, as the ingestion of gluten or dairy products are not required for accurate DNA analyses.