Sure.
But to put things in perspective, the entire R&D budget for the first iPhone was $250M, and I don't think it was highly optimized for cost.
10B is 40x higher. And this is an average year, for an unfinished product that did not even start from scratch (they started with the Occulus Rift, a pretty advanced prototype)