Always consult your espresso machine’s user manual. Usually, it is fine to add syrup to the milk in your milk frother. I have done it with our Breville Barista Pro with great results! And be sure to clean the machine thoroughly after use.