Yes! The only reason I recommend adding the vanilla toward the end of the recipe is because vanilla doesn’t hold up to heat well and the flavor becomes weaker the longer it cooks.  If you do accidentally add the vanilla at the beginning, just add another teaspoon or so at the end to make up for the flavor that was lost while cooking.