Can codex make AI?

Can codex make AI? I don’t see why it can’t, but has it been done before?