Question: do ui designers need to code?
Answer: No. You don't need them. Although if you're going to do UI instead of UX you will need a good understanding of the platforms you're working with. Many prototyping solutions include or get close to coding and it is now normal to prototype UI as part of the design process.