The spray foam will adhere to most surfaces apart from dirt with closed-cell being used in conjunction with metal/concrete in most cases and the open-cell in areas around timbers due to its breathability.
Will the foam stick to metal/concrete/other?