Depends what you mean by "the 3 basic foodstuffs".
I'd say Carbon, Hydrogen and Oxygen are the 3 main elements of most diets, but you can't make ALL (or even most) foods from just these, any more than you can make them all from carbohydrates, proteins and fats (which was the correct answer to the question that should have been asked.)