You can let it help with syntax, but you can't rely on it to understand precise semantics.
SQL is the worst offender here: LLMs are very good at remembering its awful syntax, but very bad at writing nontrivial queries.