You may break tomato plants and add them to the compost. However, it shouldn’t harbor any diseases. But, the problem is the basic compost heaps may not become hot enough to kill fungal spores or diseases that the tomato plant may be harboring.