Yes, Mac Miller is featured on "R.E.M."—a track from Ariana Grande's 2018 album Sweetener. (Note: The song is "R.E.M.," not "Way.")
Miller contributes a verse to the Pharrell Williams-produced song, which blends dreamy R&B with trap-inflected percussion. His appearance is brief but poignant—recorded during their relationship (2016–2018). Miller passed away in September 2018, months after Sweetener's release.
"R.E.M." stands as a bittersweet document of their creative and personal bond.