I always believed that designers _should_ know the basics of HTML and CSS. Having learned a bit more about design tools and systems recently I'm convinced that good designers _must_ know the basics of HTML, understand the possibilities and limitations of CSS, and most importantly how frontends are built.
You can't write a good recipe if you don't know the ingredients and how they're prepared.