Yes, but...
In theory what you suggest is pretty standard text book, and in fact Keynes makes exactly this point in his book The General Theory of Employment, Interest and Money as a way of getting a grip on the idea of interest and "Time-Value of Money" (don't have copy to hand, will update reference when I get a moment).
The problems come, as always, in the details - in fact in details that you have glossed over in your original set up.
If these 10 apples can be traded for those 20 oranges, then how can you be sure that another 10 apples can also be traded for a different 20 oranges. Or even, are we sure 100 apples can be traded for 200 oranges?
Adding the dimension of time to this, creates even more problems, but putting those aside the relationship you are looking for is
$$F=S_0e^{rT}$$
That is the future price ($F$) is equal to the price now ($S_0$), inflated by the time value of money.
Now back to apples and oranges. Are we certain that 10 apples now is the same as 10 apples in the future? Or more pertinently does the 10:20 apple:orange exchange rate persist into the future? Probably not.
Apples and oranges are both seasonal, and also suffer seasonal demand. We could image that apples are easy to come by now, but hard to get in 6 months time, vs oranges. Since you can't store them, this has to be reflected in the futures price. This means you will get a different $e^{rT}$ value for apples and oranges
These main causes of these difference are usually broken down thus
- Storage costs: can the thing be stored and delivered at the future date? If so how much does it cost to store?
- Carry: How much do you earn holding the thing for longer
- Convenience yield: How much premium are you willing to pay for the convenience of having it to hand?
- Credit risk: How much do you trust that the person will deliver (to the best of my knowledge there are no apple or orange futures, so we would be talking about a forward contract)
Take all these into account, and you have a commodity implied measure of future inflation. Of course, inflation as usually considered also includes services and retail products, on which there are very few (no?) futures/forwards. If you could find iPad futures and child care futures, then you would in theory be there.