Quoted from Crash:
Not necessarily the case. My iPhone tracks via GPS just fine in my house. The signals are actually pretty difficult to block.
Quoted from Nullpunkt:
Your iphone tracks your position by triangulating the signals from cell-phone towers, not by receiving a signal from globally positioned satellites.
It uses a mixture of whatever is available at the time