Yep, my mom's BFF's kids have fancy law degrees but only middling jobs. Surgeons, MDs, dentists, biotech scientists, data scientists, and software engineers make a lot more.
chiming in only to add that judges are not elected in every jurisdiction. in many, they are appointed by the executive and approved by the legislature.