Can an executor of a will name someone else to be the executor after the will-maker dies?

When my mother died, my brother was the executor because he’s the older. But he lives in another city, and there were logistic problems, so I was named the executor. No problem.