Compatibility summary
You will need a travel adapter in Afghanistan; plug types used there differ from Japan. Voltage differs by more than 20% — a voltage converter may be needed for some appliances.
Plug comparison
Japan plug types: A B
Afghanistan plug types: C F
There is no common plug type between Japan (A B) and Afghanistan (C F). You need a travel adapter.
Voltage comparison
Japan: 100V, 50Hz
Afghanistan: 230V, 50Hz
Voltage converter recommended (Japan 100V vs Afghanistan 230V).