Not in terms of effect, but in terms of how impractical the requirement is. Barracks' are not like Monuments, Universities, or Oprah Houses; the provide no passive yields and their benefits are entirely dependent on how many military units the city produces. It is unreasonable to assume that I would want a Barracks in every city because I will not use every city to build military units, only the ones with the highest production.