Most mechanics would say yes, it’s a good idea to avoid problems. But it’s also easy enough to replace the sensor and there’s always a warranty on that kind of part. If a new sensor works right out of the box, OE or aftermarket, it will likely continue to work fine indefinitely.