Yes! A raw food diet is very beneficial for dogs that suffer from anal gland issues.
Your dog eliminates toxins (found in preservatives and poor quality ingredients in pet food) through the skin, liver and anal glands. A poor diet can contribute to the amount of secretions in the glands. Bottom scooting is often a telltale sign your pet is experiencing itching or full anal glands.
Many dogs with anal gland issues have had the anal gland sacks manually expressed by their vet or groomer. Routine manual expression of the glands can cause inflammation and swelling which can aggravate and increase the frequency of blocked glands. Allowing the body to naturally express the gland secretions is the safest and healthiest for your dog.
Often the recommendation by your veterinarian is to add extra fibre to the diet to produce a larger volume stool that will help to naturally express the glands. A raw diet is often more effective as the stools are very firm. The firm stool helps to express the glands far better than a soft stool.