A pyramid has a polygonal base. It is possible for the polygonal base to be a square, but it doesn't have to be a square.