You could divide the yard into two clear zones so both uses work well. Place the raised vegetable beds along the edges or against a fence where they get the most sun, and keep the center of the yard open with grass for the dog to run and play. Adding a small border of gravel, mulch, or low plants around the beds can also help protect them from curious paws while still keeping the space looking organized and natural