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, ...
A rectifier input capacitor's size is often considered nebulous. Therefore, common practice is to pick a large size, and if the ripple voltage is low enough, all is okay (see the figure, a). If not, ...