It totally depends on the food and if it was frozen before. Even different vegetables react differently to freezing, so it isn’t a ‘one solution fits all’ situation. Your question, as it is, is unanswerable. You’ll need to ask in relation to specific foods. And it isn’t spoiling you need to worry about in the freezer. It is freezer burn, crystallisation and bitterness. You need to blanch almost every vegetable, not cook.