Yes, for all organisms, the major function of DNA is store and be utilized for the encoding of specific gene sequences onto further RNA molecules which will later on be used for synthesizing of essential polypeptides needed for all living beings, anything that is composed of 1 or more cells.