This 1000%, I made the mistake of not paying attention to that and first huge storm my basement flooded. Outside was sloped just enough to my house and then as I took a closer look around I noticed some repaired damage from the prior owner.If it has a basement, look at it. Take note of its condition as well as the joists above.
If it is slab-on-grade, walk around the perimeter of the house and take note of the foundation's condition and if it'll need parging. Also look at the way any landscaping/the lawn is sloped, should be away from the foundation.
Basically just look for any potential water or moisture issues.
It took alot of time, money and multiple headaches to get the issue taken care of plus having to repair the inside after fixing the issue outside.
, 15 grand for new roof give or take.