Yes it is legal but with some restrictions. In September 2017 the Bank of Namibia issued a role paper on digital currencies entitled wherein it declared cryptocurrency exchanges are not allowed and cryptocurrency cannot be accepted as fee for goods and services.