Yes! Slowly cooking them coaxes out the subtle, sweet onion flavor and turns it into a buttery, jam-like consistency. It mellows the harsh flavor of onions. You don’t want caramelized onions for this.