It is OK to send connection requests in LinkedIn to the recruiters, hiring managers, directors, VP or CEO of a company. It is not uncommon for job seekers to do that.
However, please remember that after those people accept your connection request, every post you like, share, or write on LinkedIn will automatically show up in their linkedIn feed. They can view those posts at any time.
In that case, please make sure those LinkedIn posts you like, share, or write are always professional, positive, and business-related.
In other words, please make sure those posts are not political or controversial because they may backfire easily as you can understand why.
Also, please note that even if the hiring managers are not connected to you via LinkedIn, they may still be able to go to your LinkedIn page and view the posts you like, share, or write if you set your LinkedIn to be "public", which is the default setting.
BTW, very often, job seekers can choose to "FOLLOW" instead of "CONNECT" to the hiring managers, directors, VP... It's quicker that way, and job seekers can get automatic notifications from LinkedIn whenever those VIPs post or share new jobs available in their companies.