Only if your investment is likely to increase in value and you can handle the continuous maintenance costs and you can take the risks associated with ownership and you can take the risks associated with mortgages and you want to tie a rather heavy anchor to your legs.
But if all these are true, then, sure, you should buy your own place.