I would always have a survey done, but you need to exercise some caution. Surveyors often opine without knowledge. Ours (on this purchase) glibly suggested we should get an electrical survey, based on the age of the house (he had no idea about the age of the wiring).
But a proper electrical survey is quite intrusive, and it would be perfectly within the rights of the seller to say, "No, you are not removing light fittings and digging around behind sockets, or channelling out walls, until we've exchanged and you are responsible for fixing it." So, I could have paid for an electrical survey in advance of exchange, which couldn't be completed, and which told me nothing. Or I could have paid for a full survey after exchange, which had no impact on the price or my decision.
We decided we wanted the house and if we needed to pay a few grand for a rewire, fine, it wasn't going to change our decision. A decade on, the electrics are all fine - we've added lights and sockets, no problem and we will upgrade the fuseboard when (if) we change the kitchen.
But I would always want advice on structural issues, damp, - I'm not sure that a survey even identifies important stuff like the state of the roof (they don't climb up and inspect, do they?) or drains.