No. Metallica has never released a track incorporating Ennio Morricone's iconic theme from Sergio Leone's The Good, the Bad and the Ugly (1966). The band's Western-influenced songs—most notably "The Unforgiven" trilogy (1991, 1997, 2011)—are original compositions that evoke a cinematic, Morricone-esque atmosphere through clean guitar arpeggios, whistling motifs, and spacious arrangements, but they do not quote the actual theme.
The band recorded a version of "The Ecstasy of Gold" for the 2007 Morricone tribute album We All Love Ennio Morricone. It's a faithful, heavy interpretation—but still a cover, not an original composition using the main theme.