Depends. If they're high enough above the water line then they should be fine.
I built some a few years back using those flexible strip lights but I had them about 4" above the surface and they only last about 2 years due to the corrosion.
Some of those flexible strip lights are water proof and some are water resistant. Not sure which you have. But would recommend keeping them higher than 4" above the surface.