naw ...it would work
using something flat ...absolutely flat, on the opposite side of the fence while spraying ...then pressing another flat object into the foam just after release ... would fill gaps with limited mess - if prepared for what happens after button is pushed -
wear gloves and do it all on a drop cloth
been there - it works