Apparently not, according to someone who would know. Speaking recently, ILM VFX Supervisor Roger Guyett poured cold water on the belief that there were cut scenes involving a Ben Solo Force ghost at the end of The Rise of Skywalker.
According to Guyett, they VFX team never created a Force Ghost version of the former Kylo Ren that would have appeared alongside Luke and Leia in that scene. (For the record, Leia’s Force Ghost was created with Force Awakens footage.) “My interpretation of it anyway is that when you see Luke and Leia there, it’s about the Skywalker [legacy],” he remarks of Ben’s absence, adding that he’s enjoying the fan speculation about that choice.
Beyond that, there were other characters making appearances, including Hayden Christensen as Anakin Skywalker.
Guyett also suggests that an on-screen cameo by Anakin Skywalker’s Force Ghost was never in the cards. Instead, audiences hear Hayden Christensen’s voice — along with the voices of other fallen Jedi — in the final battle between Rey and Palpatine, which was enough for Guyett. “I thought that was a really fabulous moment.”