If you limit yourself to simple work like replacing outlets, switches, and hardwired lamps, that's most of the likely electrical work for an existing house. Call a profesional for new circuits and maybe for replacing breakers; IMHO, it's a scary box, but the work is straight forward, so I'll replace breakers, but I would (and have) definitely call out for a breaker box replacement.
If you're smart enough to figure out, say, npm install, and have confidence in what you're doing after watching a bunch of YouTube videos about the procedure, go right ahead and rewire your home electrical. But holy shit if you are not; if it still doesn't really make sense after several hours of YouTube, for the love of life (yours, any house mates, possibly your neighbor's as well), don't try this at home and have a licensed professional, or at least someone who does get it to do it.
Just take a look at electrician forums or even Stack Exchange to see how seemingly simple things result in arguments.
For an example more relevant to the IT crowd here: Linus Tech Tips and pretty much all their videos concerning "upgrading" a house, car, boat, etc. are rife with regulatory violations, safety guideline violations, industry standard violations, and the kitchen sink.
So if you want to learn any of the trades, even just superficially for hobby/DIY purposes, find someone who really knows what they're doing and ask them to teach you.