Perhaps a decade ago yes, but in a modern context, no, UI does not require an understanding of coding. However, this is not to say that an understanding of coding cannot help a UI designer, because it certainly can. But with the power of modern software for UI design, one can easily excel as a UI designer without knowing much about coding.