Not necessarily. UX and UI design jobs rarely require the amount of coding that, say, a web development job requires, but it is still useful for designers to know a bit of code. This is partially because they will be working closely with web developers and should be able to understand how to explain their needs. Managers hiring for designers also regularly favor those candidates with some coding experience.