Correct. Find the volume of the cube and subtract the volume of the pyramid from it.

Volume of cube:

Volume of pyramid:

Volume of solid: cubic meters