Does an executor have to be appointed to a will?

Every will has to have an executor. The court will appoint one.