Genetic mutations that contribute to cancer can be inherited or acquired. Inherited mutations are passed down from parents and are present in every cell of the body. Acquired mutations, on the other hand, occur during a person's lifetime due to exposure to factors like tobacco smoke, radiation, chemicals, and certain infections.