This statement is true.
The structure of the earthworm's body wall consists of a cuticle, epidermal cells, circular and longitudinal muscles, and a body cavity membrane within the muscle layer. Epidermal cells have well-developed glandular cells that can secrete mucus to moisten the skin for movement in the soil. So earthworms do not need eyes to move in the soil. Through evolution, over time, earthworms do not have eyes.
Earthworms don't have eyes, but they have a very well-developed sense of touch, including epidermal sensors, oral sensors, and line sensors. Two experiments were done on earthworms: one was to put a piece of iron or a brick on the earthworm. When the earthworm's skin came into contact with these objects, it would immediately turn to avoid them.
The other was to place earthworms in places with different light intensities. As a result, the earthworm walked into low light. This shows that earthworms do use tactile organs to replace the function of eyes, and earthworms are very sensitive to the intensity of light. It will instinctively avoid strong light, which allows it to adapt to life in the soil.