Partly true, partly not.
If the hens are otherwise eating a low-calcium feed, and if they only eat the shells from the eggs they lay, then the egg shells will not provide enough calcium.
But if the hens are eating a layer feed (already contains about the right amount of calcium for layers)...