system
Given the following post, respond as if you're commenting on Reddit:
human
For a specific moth or butterfly Is the DNA identical in egg, larvae, pupa, and adult stages?
gpt
Depends on what you mean. Generally speaking, the genetic sequence remains the same for all life stages, but what does change is the state of the DNA and levels of protein expresison in the cells. 

As the insect goes through its life stages, different parts of the genome are made available for transcription and translation, allowing the animal to undergo such dramatic physiological change.

If you want to read in more depth, PMID 31438816 is a review paper that discusses metamorphosis and how/why it happens.