While cooking raw meat or poultry kills bacteria making it safe to eat, you can’t remove spoilage from food once it has been cooked. Once food has been cooked and then spoilt because of the actions of microbes, no amount of cooking is going to rescue it.