No. Whether you grow your vegetables in ground soil, containers, or a raised garden bed, the depth of soil isn’t the issue. The real threat to tomato plants is a lack of sunlight, and reduced air circulation. Reducing air flow increases humidity and that increases the risks of pests and diseases. Both can kill tomato plants.