Yes, you can onboard a new C9300‑M directly with IOS XE 17.18.2. Cisco’s current minimum required software for onboarding Catalyst 9300 family switches into cloud management is IOS XE 17.15.3.
I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.
Please, if this post was useful, leave your kudos and mark it as solved.