Yes! This is completely possible.
First, add the bags of the first diet type to your cart. Make sure they are in your cart before continuing on.
Second, return to the shop page and add the bags of the second diet type to your cart. Again make sure that these are in your cart as well.
Lastly, continue on to the checkout page!