That will depend on some other factors.
Where is it located? If it is in a location that a leakage failure could cause water damage, then I would replace it. If it is in an open carport with positive drainage, then I might not recommend replacement.
How is your water? If your neighbors have a service plumber on speed dial due to water heater failures, or repipes, then I would replace it last week.