Nerve cells and muscle cells have the same DNA because they both come from the same type of cell, called a somatic cell. However, despite having the same DNA, these cells can have different functions because they express different sets of genes and proteins.