This question is basically: can a new use for a known substance be patented?
The answer depends on whether the claim to the new use is novel and non-obvious (as with all patent claims). In the example case, I can see three types of claims which might be used.
A giraffe food product comprising the known dog food.
This is not novel, since the known dog food ...