Yes, since you're using a 9 V adapter to power up the circuit, I would say it's good to have a capacitor because you won't risk fluctuations in the output voltage. It's better to have it to make it work under optimal conditions.