High-strength semiconductors that compress & flex like memory foam?  Yes, it’s possible 

Scientists from Brookhaven National Laboratory on Long Island and the University of Connecticut have developed a customizable nanomaterial that combines metallic strength with a foam-like ability to compress and spring back. This organic-inorganic hybrid material could pave the way to new nanoelectromechanical devices.

The nanomaterials have elastic properties of human muscle — high strength with the ability to flex and release large amounts of energy — opening up the possibility of entirely new classes of robust, flexible nanoelectromechanical systems (NEMS) such as biosynthetic artificial muscles.

Source: Scientists Engineer Nanoscale Pillars to Act Like Memory Foam