Yes, this should be fully possible.
We actually believe Edge.js will a great use case for LLM-generated code.