no it's not. LLMs just output the text, they don't execute command. You have to capture that text, then parse it and decide what to do with it. You can for instance execute it blindly. Or before execution you can inspect it and decide if it's safe or not. You can now take a decision model like jev and have it inspect the command to see if it's safe or not before execution. If your LLM model and decision model is not coming from the same level, you have little to worry about.
But let's put aside decision models, you should be running your agent in a sandbox.