Even if someone names you as the executor to their will, the court still needs to appoint you after you accept. During the appointment process, you may decline.