Yes, but...
Devil's advocate here, let's use a 200K house as an example.
200K principle, 30 years, 6.5% fixed (aggressive).
That's 1265 a month. Add an estimated 3000/year taxes and insurance (conservative).
4 years = $72720. At the end, you'd still owe, 189,900.
When it comes time to sell, it'll cost you about 6% commission to a realtor. It is rare to sell your house currently but even more rare for someone to be buying one.
After 4 years, you'd have to sell the house for at least 228300 just to break even with what it would cost to rent - and that's with the idealistic numbers above. Heaven forbid getting stuck with a place that you can't sell down the road, not to mention the hassles involved.
It's a gamble in today's market, with today's future outlook.