It depends on the foam and the glue. You can get away with a thin layer of "normal" superglue on some foams if it sets up quicker than it eats the foam, but if you use too much it starts to eat at the foam and your bond will be ruined, and it also takes forever to set up once it's gotten mixed...