Neither a sperm cell nor an egg cell is DNA. DNA, or deoxyribonucleic acid, is the genetic material that carries the instructions for building and maintaining an organism. Both sperm and egg cells contain DNA, but they are not DNA themselves.
Sperm cells are male reproductive cells that carry half of a father's DNA. Egg cells are female reproductive cells that carry half of a mother's DNA. When a sperm cell fertilizes an egg cell, their DNA combines to form the complete genetic blueprint for a new individual. This blueprint is housed within the nucleus of the fertilized egg.
Therefore, DNA is the genetic information present within sperm and egg cells, but it is not the cells themselves.