It’s always a good idea, especially if they’re hard. Cooking them first makes them more flavorful through caramelization or, in this case, by blending with the garlic oil. It also eliminates some of the stored water. This helps keep your omelet from getting soggy.