I have never heard of doing this, and don't personally "seal" the end of my line. I'm guessing, if it is a floating line, the foam would still cause the line to float, and if it is a sinking line, you wouldn't notice anyway.
I'm sure if the manufacture of the line would put directions in/on the box about sealing the line if it was necessary, as well as give a suggested brand of line sealer.