They may be able to digest the carrots/fruits/veggies, but not in a way to benefit them.

The cell walls of plants fruits/veggies are made of cellulose, dogs cannot digest cellulose, thusare unable to get to the nutrients in the fruits/veggies.