Indeed. My current house is great thanks to an inspection. My wiring was incredibly old, and so are my pipes. We had to replace the wiring, legally, as the house couldn't be insured, it was a fire risk, but I'd rather know that than die in a fire.
And if I didn't use a good inspector I would've ended up at a different house that looked amazing, but had incredibly expensive termite damage hidden behind insulation that the owners shoved in the foundation to cover up the damage.