If you can afford the upfront and maintenance costs and plan to stay put for a while, a condo is usually a good investment.