Yes, you can purchase homeowners insurance for homes in need of repair, but insurance companies generally view these properties as higher risk. Therefore, your options for insurers may be limited, and premiums will likely be higher compared with homes in good condition. These policies also might have more exclusions and limitations. For example, they might not cover damages that are a direct result of the existing disrepair.
Because of the increased risk, insurance companies may require a home insurance inspection before issuing a policy. Based on the inspection, they might ask for certain repairs to be made as a condition for providing coverage.