In theory, that's what accreditation is supposed to represent: a set of standards to ensure students are educated to a certain minimum bar for a given major.
However, the cynical reality is that university is as much about signalling competence relative to the rest of the population as it is about learning. Fun fact: Stanford's computer science program is not accredited. The department explained that it's a mountain of paperwork to get accredited and it wouldn't benefit Stanford at all because it's already so prestigious.