This is something I always see on Linkedin posts.
I think having a basic understanding of code can be helpful when handing off designs to developers. If we understand how something might be applied in code, it makes collaboration smoother and ensures the design and development process flows better.
In my best design roles, I had direct communication with developers, where I could explain the reasoning behind my designs. If there were any roadblocks in implementation - whether due to time constraints or technical challenges - I’d get almost immediate feedback, and we could adapt quickly based on the product's current needs.
That said, I completely agree that if designers are expected to take on coding as well, we should be compensated accordingly. After all, that’s essentially two different roles. I like to believe the expectation is more about having a basic idea of how things work, not necessarily writing the code ourselves.