Yeah capacitors smoothen AC. As in think of it, the capacitor is charged during the positive cycle, while it discharges during the negative cycle. the discharging and charging takes up time...that way, the discharging and charging do not happen at equal intervals..eventually, a graph that would be normally with distinct waves, with a capacitor, you can see it becoming for even.
Sorry, this is a rough explanation. hope it helped.