No, John Wayne did not die during the making of a film.
He died on June 11, 1979, at the age of 72, from stomach cancer. His last completed film was "The Shootist" (1976). He was also working on a film called "The Cardinal" at the time of his death, but he never finished it.