LLMs are trained on lots of code, including some Haskell, OCaml, and Scala, but far less than Python, JS, or Java.
That gap shows up clearly in how LLMs handle FP code, even used in marketing for FP courses.
So yeah, you can use them just expect weaker support than for JS or Python.