Yogurt and fruit are not strictly similar foods, so in general, you can put fruit and yogurt in the lunch box.
For people with normal intestines and stomach, it doesn't matter to eat together. It is possible to digest two kinds of food at the same time, but if they have a bad stomach, it is recommended to eat them separately, or try to chew up the fruit before swallowing it.