SVG animate path’s d attribute

Is it possible to use SVG to animate the d attribute of ? I can draw both a diamond and a circle as a path made of eight bezier curves: