In some cases, snakes can live longer in captivity due to the absence of predators and access to consistent food and shelter. However, this depends on the quality of care provided by the snake keeper.