Is a square the same as a rectangle?

Of course!

=======================

Honk ! The buzzer is bothered by the first answer above.

A square is a special kind of rectangle.

All squares are rectangles, but all rectangles are not squares.