Yes, but the difference (and it's not a small one) is that in I AM LEGEND the "disease" was an accident and/or side-effect. In A.I., man is purposely creating sentient robots that are human in every way (including their own thoughts and feelings) in order to serve him. And it deals with that notion that if man could create a sentient being that thinks and feels in every way, does it have a "soul"? Where is the line drawn? In the beginning, didn't God create man in order to serve Him? In A.I. it's that one specific question. And it may not be for everyone (especially the agnostic) but I personally think it's a very interesting theme and A.I. played on it better than any film before or after it. In fact, when you view it for what it is through that lens and absorb its theme it's a damn masterpiece.
But, back to INDY... that's more fun anyway.