All food from plants or animals contains genes. In cooked or processed foods, most of the DNA has been destroyed or degraded and the genes are fragmented. Whether fresh or cooked, when we eat food, we digest it into its constituent parts from which we make our own genes and proteins.
Each cell in a plant contains about 30,000 genes. GM usually involves adding an extra 1-10 genes. It is estimated that we each eat many billions of genes every day, which come mainly from fresh food.
See related questions