Hi Elspeth,
Yes, the executor has an obligation to pay for all funeral expenses, debts, administration costs and testamentary costs of the will-maker (testator). This comes out of a specified account (assigned by the testator beforehand) or the residual estate (where the testator is silent). Essentially, the estate pays for these costs and the executor manages this.