it depends on which country you come from, because if your country have mutual agreement that let the bosnian as well buy property to your country, then yes, if not, then you cannot buy it on your name, unless you can have permenant residence of Bosnia, on the other hand you can open a company in Bosnia and the company can buy the property, this is the right way.