Expanding liquid foam cured under pressure

I see a lot of liquid expandable foams advertised with varius weights and weight per cubic foot specs. I was wondering if it were cured in a pressurized vessel would it increase the density of the foam.

I suspect that any significant pressure will result in the stuff failing to expand into a foam.
Whether it would cure at all is something I wouldn’t care to guess.

What would the application be?

You can probably get polypropylene glues or foams in varying degrees of expandiness, Gorilla glue comes to mind for one.

You mean polyurethane, not polypropylene.

These foams can be constrained and will harden at higher density in a smaller space (Conservation of matter apples). They may foam unevenly if they are allowed more or less than the right volume.