Absolutely.
As The Real Estate Guys say (they have a radio show and podcast): "Live where you want to live, invest where the numbers make sense."
I own some near where I live, because it made sense to do so. Due to appreciation over the last two years, it no longer does, and I am purchasing elsewhere.
Eventually I'm planning on renting, while owning in other locations.
If it doesn't make sense to buy where you live, don't do it. Stick with equities. If you still want to own real estate though, your only option is to invest elsewhere.