Yes, baby gates are generally safe for dogs, provided they are properly installed and the correct height and strength for your dog's size and breed.