Yeah but the problem with this thinking is if you were to sell your house and buy in the same market/area you'd be paying higher prices on the next house.
That is only if you buy in the same area though.
My wife and I sold our old place for about 120k more than we bought it for after 3 years. That plus the equity we had built up allowed us to buy a much bigger place in a different area where prices have not yet increased as much.
Works pretty well as long as you have areas like that to move to. It's all a personal decision though, and very context-specific.