Text generating AI can "write" essays. However, whether you should use GenAI to "write" your essay is an important follow up question. Consider these questions as well:
Essays are assigned to assess your knowledge of a particular subject, your critical thinking skills and your writing skills and while using GenAI may save you time, you have skipped the learning that should have occurred during the essay writing process which may have additional negative consequences in the future. USMA Library's Generative AI Guide may be useful in deciding whether or not to use GenAI on an assignment.