It depends on the campaign. [MENTION=6801226]MechaTarrasque[/MENTION]'s answer isn't wrong, but it's Forgotten Realms specific. The true resurrection spell only works for creatures less than 200 years old or less and assumes you have access to the body and that the creature is willing and able to return to life.
Of course if it makes sense for the campaign, it can always happen, it would just take more than a simple spell. Even a 9th level spell.
In my campaign, even raise dead is iffy and getting someone out of Helheim is virtually impossible but there are exceptions to every rule. For example, a lich has their soul trapped in a gem. If you had access to the gem and the lich wanted to come back to life a dark ritual might work.