Either, use an Atom Array…
Or, make your Pyramid Editable / select all edges / Edge to Spline.
Create a Rectangle (or else) in a suitable size.
Drag the Rectangle (first position) and the Pyramid.Spline into a Sweep Nurbs.
Adjust the Sweep Nurbs- / Rectangle-settings to your liking..