Yes! Basil has a sweeter and more floral flavor compared to rosemary and can be used as a substitute in equal ratios for both fresh and dried versions. Be sure to add fresh basil close to the end of the cooking process. The soft and delicate leaves can lose their color and flavor when cooked for too long. In contrast, fresh rosemary and other herbs with sturdier leaves can tolerate longer cooking times and should be added at the start of the process or halfway through.