Eating from plastic containers should be fine, but I’d advise not eating the plastic containers themselves. I’d say it’s usually not good to leave plastic containers in the heat/sun for extended periods of time, but I’d hope you’re not leaving yogurt in the heat/sun regardless of what container it’s in.