Yes, but serious washing requires a strong enough base to break water’s surface tension, and most wood ash is a bit weak in that area.
Anyway, for the wise, preparation.
The wood ash is used to make lye. The lye and the fat are used to make soap.
/johnny