Look at almost any circuit, and it’s nearly sure that there will be a capacitor included in it. These two-terminal electrical components rank alongside resistors.
All buck converters need capacitors on the input. Actually, in a perfect world, if the supply had zero output impedance and infinite current capacity and the tracks had zero resistance or inductance, ...