Should Designers Learn to Code?

These days, many designers are skipping past the traditional design arts and going straight to digital design, such as UI/UX, web design and design for mobile. But does learning code benefit the designer of today?