It's definitely an "it depends". I'm in a Purple state (Missouri, about half Democrats and half Republicans, sort of trending Red, but with plenty of independent spirit and all that), and being about to buy a home made in 1910 in my home town, I looked up the city's code. I can do wiring entirely by myself,
IF I submit a plan, and get the wiring inspected, just like is required for professional electricians.
Which is exactly what I will do, because though I've been doing wiring of various sorts at a smaller scale since the '70s, I very much want someone double checking my plans and work. And this makes sense in many ways, e.g. there's about a foot separating my and my neighbor's garages, and while more between our houses, if mine were to catch fire, the fire department would have to earn their pay to keep it from catching on fire.
And echoing others, yeah, all people, pro and diy types, most certainly cannot be entirely trusted to do it right.