Yes, they can be. Depending on your assets, the role of the executor can involve complicated tax and court filings and asset transfers, but ends sooner than the job of a trustee. Once the executor disperses assets, handles debts, files tax returns and concludes probate, the job is done. In many cases, the trustee's role goes on longer after someone passes, as it deals with overseeing and dispersing finances over time.
Feel free to reach out with questions or feedback: email@example.com