They only contain one or the other. Viruses also contain a protein covering that is found outside the nucleic acid, inside the viruses. And this protein covering is known as a capsid. Now, some viruses also contain another covering that is made of lipids and this is known as the lipid envelope. And the lipid envelope actually comes from other living cells. Now, the lipid envelope doesn't actually only act in protecting the cell.