Yes. In Treehouse of Horror XI, the first story is called
"G-G-Ghost D-D-Dad." In it, Homer reads a horoscope that says
"Today, you will die." After several close calls, he finally bites
the big one when he chokes on a piece of brocolli. Further still,
Homer's ghost comes back to do one good deed to get into Heaven.
His ghost then tries the brocolli again, chokes on it, and dies.
His ghost's ghost then goes to Heaven, where he tells St. Peter, "I
tried the Brocolli again."