Yes, it is possible to obtain an Afghan visa from an embassy or consulate of Afghanistan located in another country. However, it is recommended to check with the embassy/consulate beforehand about their visa application procedures and requirements, as they may vary from country to country. It is also important to note that Afghan visa regulations are subject to change at any time, so it's essential to stay updated on the latest requirements and restrictions.