It really has to come down to how your pup was reacting and the other dogs body language.
If your dog was acting afraid or reactive, then you are in the right. If your dog was calm and relaxed and the other dog was calm and relaxed and behaving appropriately and YOU were panicking, then I would worry you have now shown your dog that other dogs are scary.
It's a fine line. You don't want your pup to get from you that dogs are scary, if anything you want him to think that other dogs are no big deal.
So a friendly dog approaches, you just move on. Get your dogs attention and move on. No big deal. Don't create a scary confrontation when there is none.
If the dog was behaving aggressively, or your pup was reacting negatively, then stepping in and moving the other dog away is warranted, but then just move on. We can't dwell on the past. Our dogs don't.
Sent from Petguide.com Free App
"So that others may live"