You can preemptively add yourself to their "do not contact" list:
https://www.linkedin.com/help/linkedin/answer/426
I did it four years ago and they've honored it since.
https://www.linkedin.com/help/linkedin/answer/426
I did it four years ago and they've honored it since.