Yes, a square prism and a cube are the same.
Both of them have 6 faces, 8 vertices and 12 edges.
The only difference is that a cube has 6 equal faces, while a square prism has a shape like a cuboid with two squarefaces, one at the top and the other at the bottom and with, possibly, 4 rectangular faces in between.