If it is water and fish safe it's ok

I know many people use Great Stuff: pond and stone
There's also Beckett Waterfall Foam and Aquascape Waterfall Foam

I think these are all US brands but i don't know, maybey they sell it in the UK