Does the Uniform Plumbing Code allow a water softener to be installed when the inlet or the outlet of the softener is smaller than water supply line?

Does the Uniform Plumbing Code allow a water softener to be installed when the inlet or the outlet of the softener is smaller than water supply line?