It depends, I think:
1. Did the AoA sensor malfunction occur before the takeoff roll?
2. Would the AoA disagree indicator come on early enough to abandon takeoff?
3. Would the crew reject takeoff once the AoA disagree indication comes on?
If it's a "yes" on all three questions, then presumably the accidents would not have happened.
Once you're in the air, and all hell breaks loose (stick shaker etc.) while MCAS tries to dive you in the ground, I doubt that the indication would have made any difference: before the Lion Air crash, crews didn't even know about MCAS. After, they did know, and the Ethiopian Airlines crew, from what I gather, diagnosed the problem, though maybe too late - but again, I doubt whether the AoA disagree indication would have helped.
That leaves above questions.
1. For the Lion Air crash, the AoA malfunctioning was there before takeoff. For Ethiopian, I'm not sure.
2. I'd think yes.
3. Don't know. Anyone an idea? (Today, presumably you'd abort with a MAX and AoA issues. Back then?)