When you rotate a rectangle, it creates "Cylinder" shape in the air, which has same cross-section. If we are talking about cross-section, it would be true for opposite reaction, means cylinder can have cross section in the shape of a rectangle, 'cause it is 3 dimensional image of rectangle
Hope this helps!