In general, adding compost to your soil before planting tomatoes will improve the quality of your soil and help prevent problems during the growing season. Adding organic matter to your garden bed, such as a layer of compost, will also help prevent diseases between plants by creating a healthy growing environment for them. For those with sandy or clay soils, adding sand or clay to the top layer of your soil before planting can also help create better conditions.