The point isn't that designers can't write production code ever. But if they're expected to code their own designs, then that isn't a good use of your designer's time, nor will you have well architected frontend code. You should have full time UI engineers writing most of the code.
But if designers want to make smaller changes, like tweaking CSS and whatnot, then that's fine. Does that make sense?