If it is just a day or two past the expiry date and just slightly sour, you can use it in baking recipes. If the yogurt is well past the expiry or there are signs of mold, it should be thrown away.