This kind of depends on the meal. If you're cooking double of a meal to freeze one portion, it's totally fine to cook then freeze. To me, it's usually easier to freeze then cook (with consideration of any meats that need to be cooked before freezing).