Only on some popular OS which told you over all the years that kernel memory is safe to store keys. Of course it is not. They didn't listen, and it's getting worse.
Extracting a key over only a few days pretty much is a killer, heck even a few months for a high value target is game over think what happens if you get the private key of a key internet service like Google or Facebook, not to mention .gov or .mil sites.