Can you record animations with ragdoll physics

Hi! I was wondering can you record death animation for the character using ragdoll physics? what should I do to achieve pre-recorded death animations?

I think this way I could save some resourses especially when exporting to consoles like switch and some difference with few death animations