Yes, as a foreigner you are allowed to buy and own real estate in defined areas. There are a total of 23 areas which are called 'Freehold'. The most popular freehold areas are Dubai Marina, JBR, Palm Jumeirah and Downtown Dubai.