Yes, but a computer costs hundreds of dollars (probably thousands for schools despite their terrible hardware just due to idiot managers of budgets) and then thousands more for install/setup/maintanence labor, while chatgpt will