Yes, using flavored oils is an excellent way to initiate flavor layering in cooking, as the oil infuses the ingredients with a base flavor from the very beginning.
Flavor layering is the technique of building complex flavors in a dish by introducing different flavor elements at various stages of the cooking process. Using flavored oils, such as garlic-infused oil, chili oil, or herb-infused oil, at the start allows the flavor to permeate the ingredients as they cook. This creates a foundational flavor upon which you can build with other ingredients like spices, herbs, and sauces. For example, sautéing onions and garlic in chili oil will impart a subtle heat and garlic flavor throughout the dish, which can then be enhanced with additional spices and fresh herbs later on. The oil acts as a carrier, distributing the flavor evenly and deeply into the ingredients. This early infusion is more effective than adding the flavoring agent later, as it allows the flavors to meld and develop fully.
Be mindful of the intensity of the flavored oil. Start with a small amount and taste as you go, as some flavored oils can be quite potent and overpower other flavors in the dish. You can always add more, but it's difficult to remove flavor once it's been incorporated.