The wall can have any shape you desire, though it can’t occupy the same space as a creature or object. The wall doesn’t need to be vertical or rest on any firm foundation. It must, however, merge with and be solidly supported by existing stone. Thus, you can use this spell to bridge a chasm or create a ramp.
This is a spell that is often overlooked as one of the most utilitarian there is. As long as the creation is simple (as in not elaborate), then yes. I have always thought of using that spell as something to do with Graham Crackers: box-shape and simple.