HOT TAKE
Learning to code as a designer doesn’t make you a better designer and you don’t have to actively contribute code even if you do know how to.
But what it does do is make you a better team member and allow you to communicate much better with other people, not just devs.