Yes, unless you change your Mac’s default privacy settings. Apple wants to track your Mac usage to help with their product development, so your Mac computer comes with this option already enabled.
Apple can also do other things like track your location and iCloud usage.
You need to change your privacy settings so Apple no longer has this access.