Yes, Google can detect AI-generated content through its machine-learning algorithm. If your content is created for people first, it won't affect your rankings. However, Google has been detecting low-quality content and spam for years. So make sure the intent behind your content is to deliver high-quality, valuable information.