It's not a great idea. If you are doing this for training purposes, you should eventually wean him off the habit. Many dog trainers use treats as rewards to train their dogs. Giving treats to your dog when he goes outside to urinate can create havoc with its digestive system. Just for the treat, your dog will be more likely to go outside.