According to the LinkedIn help center [1]:
"Your note will be visible in the Relationship section of the profile and will only be visible to you."
Of course you may wish to store such information in a different system to avoid the possibility of LinkedIn inadvertently leaking the data.
[1] https://help.linkedin.com/app/answers/detail/a_id/43370/kw/W...