Don't guess at anything. If the book doesn't say exactly what to do in the situation you're in, hire an electrician. (This sounds overly cautious but really – if you're doing something even slightly "novel" then there's either going to be code issues you aren't qualified to judge, or actual electrical issues you aren't familiar with and don't even know to think about, like grounding issues.) Thankfully, most situations a homeowner will encounter aren't left up to interpretation by code, and are therefore covered in a good book.
Move on to similar things (say, replacing a simple switch or GFCI receptacle) when you feel you have enough experience.
But you can fix you or your neighbors outlets all you want.
The distinction is drawn at being a business vs yourself. But, we still have that individualist spirit, so I could be wrong about other places.
Wiring and outlets are simple enough, but you wouldn't believe peoples' capacity to botch things up. They'd connect a ground pin socket in place of non grounded one without changing the wiring, or use incorrect section wire, or with incorrect insulation type for in-wall application, or they'd replace a charred outlet without trimming the sooted part of wire. Enough nuances to avoid amateur work.
What about installing a ceiling fan? Assuming the wiring is already there.
But am sure plenty of people do small fixes anyway.
That said, as a kid I played with 230v electrolysis (stupid I know) because my 30v version was too slow. This is basically the worst case scenario: electrodes close to each other + water + combustible gas + potential for sparks + deadly voltage, but the safety system shut the power down immediately when something went wrong.
What? No, that's only true for GFCI circuits, which are not the norm in the US (typically only found in bathrooms and kitchens, though the NEC has been slowly expanding the requirements). Touching hot can kill you and the breaker box won't care.
Actual safety advice:
1. Buy a current sensor. They're like $5 from Home Depot (speaking of).
2. Turn off the breaker, and make sure it's the right one by using the current sensor.
3. If you're in a situation where you cannot turn off the breaker, wear rubber-soled shoes, and work with one hand and place the other behind your back. (This prevents current from traversing your chest cavity.)
4. Buy a receptacle tester (again, $5) and use it to test your work.
5. If any of the above is not obvious to you, hire an electrician.
This is compounded by the problem that Home Depot still sells, e.g., non-tamper-resistant receptacles. They are no longer code compliant, but they're by far the cheapest and I've no doubt they end up in the homes of tons of DIYers.
I have also read several books; watched several videos; and watched other people do this work. Over time I've picked up a number of things, and the different sources helps ensure I can pick up on what is correct vs what looks like it works but is wrong.
Like, it's technically required to get an electrican to change a light bulb - but who does this? So what is ok? Where is the line between setting up a desk lamp and stealing electricity from your neighbour with a screwdriver?