Capacitor near analog line sensor
No, it is not necessary, because the part does not have a VCC pin. You must use this part as a component in a larger circuit, and the configuration of that circuit decides if a capacitor is needed or not.

The datasheet does not include any example designs or measurement setups, which is why having a capacitor there would not make sense.