As long as you use the tool to assist you and don’t let it write your assignment entirely, it is permissible and ethical to use artificial intelligence for schoolwork.