Probably depends on the flock and their experience... like if they meet 10 dogs and all 10 are friendly, they may assume that a stray dog coming by is friendly too, until they learn that not all dogs are friends.
I have 3 dogs. One is interested in the chickens but super calm, and the chickens...