Hi autir,
The cap between input and ground is supposed to protect from self-oscillation in the regulator. Self-oscillation is very destructive and heat generating and should be avoided at any cost. And the output cap will protect against load variations. I do recommend using both of them and...