AI-generated content is considered plagiarised by some educational institutes and search engines. However, you can use AI as an assistive tool (to check) instead of a writing tool (to write).