If its "just" foam, definitely not the same.
I did a review for Icrontic (which will be eventually redone here) on a kit.
Normally, the foam in the "noise dampening kits" is dense foam backed with a thin layer of aluminium. The metal layer bounces alot of the soundwaves off and the resultant vibrations in the metal are then dampened by the dense foam.
Temperatures in the kit I tried rose by a couple of degrees C. Not bad. The sound difference was noticable. My reason for NOT keeping it in....??
IT STINKS.. once this stuff gets hot, it starts to really really stink. Like burning rubber. I've read several reviews of different brands of noise-dampening material, that all state the same thing.
Id personally say, get a better heatsink that can take a larger, slower RPM fan which cools the same but with less noise