Yes, you should always make a satisfactory home inspection a contingency in any offer to purchase a home, whether it is a previously owned home or brand new construction.
Buying a home is probably the biggest investment you will make in your lifetime. Unless you are a professional engineer or contractor, you should hire one to check out the home for you. Is the roof sound? Is the wiring up to code? Foundation sound? What about the heating and air conditioning? Are they in good working order? Appliances all working and properly installed? A professional home inspector will scrutinize all the major systems in the home and report on their functionality and quality. Construction codes change. The quality of workmanship and materials can vary widely.
Even in a brand new home, you should get a home inspection. It is money well spent.