If you believe in Murfy's law, so, yes... It's better to replace the line but, as other folks said, it depends on a bunch of factors and foiling is the lightest possible load for a kite line. Moreover, if you're far away from shore and a line breaks, I'm sure you'll try to splice them again using any knot to come back without having to swin. That's what I would try
In fact, I had a friend that had exactly this situation foiling far from shore and had 2 lines breaking at the same time (*). He managed to splice both lines together using knots and came back to the beach foiling safely.
(*) The history is crazy and hard to explain but, here in my country, some child play with cheap kites, made with bamboo and paper, using lines with a cutting coat (I'm sure @Toby knows what I'm talking about), very dangerous btw... He got the bad luck to meet one of these kites, flying nowhere in the ocean, that has cut 2 of his new clickbar lines.