The 737 has had four major generations. Each were safer than the last until the 737 Max. The safety history of the 737 overall was not a reliable indicator of the safety of the 737 MAX.
737 hull losses per million departures:
Original: 1.75
Classic: 0.71
Next Generation: 0.17
non-MAX (cumulative): 0.2
MAX: 4.0
This is the reason "past performance is not indicative of future results" is plastered all over every investment website.