Step 1: Understanding the cube's geometry.
A cube has square faces and the sections made by cutting it with a plane will often result in squares or triangles. The exact shape of the cross-section depends on the angle and position of the cut.
Step 2: Analyzing the options.
- (A) Square: A plane cutting through a cube parallel to its faces will produce a square cross-section, which is possible.
- (B) Triangle: A diagonal cut through the cube can produce a triangular cross-section.
- (C) Pentagon: A pentagon cannot be formed by cutting a cube.
- (D) Hexagon: Similarly, a hexagon cannot be formed by cutting a cube.
\[
\boxed{(A) \text{ and } (B) are correct.}
\]