They do, and they use them a lot, because controlling pests and pathogens is physically hard no matter how hard you try.
Vertical farming is way, way more energy intensive than regular outdoor based farming for the simple reason is outdoor farming can use the sun. That sole fact basically kills vertical farming for all but the highest of margin food (spices, some vegetables). When we get cheap energy, vertical farming will take off. Not before.