DNA contains the code that instructs the cell machinery to put amino acids together in a particular order to make a particular protein. As long as the DNA contains the correct code, the protein will function. Mistakes in the code (mutations) change the order of amino acids, which changes the structure of the protein, which prevents the protein from carrying out its function.