At the very least, have a home inspector look over the entire house and identify trouble areas. Based on the kind of property and the results of the home inspection, you may want to order additional inspections. These might include a survey, roof, well, septic system, foundation, soil stability or other special inspections. One reminder, when you make your offer, make sure the contract provides that you must explicitly approve all reports. OK, the house passed its inspections to your satisfaction.
Home warranties are insurance policies.
Obviously, it is if you can get the seller to pay for it. Buying a house is a complicated business and mistakes can be expensive. A good agent can do a lot to smooth the process and protect you, but even good agents can make mistakes or overlook things. Look over your agent's shoulder and make sure you understand what's going on. As I try never to forget, it's your money and your life.