actually, yes.
I also tried banging it on my desk. The desk was better, because you get a bit of a drum sound and you cause yourself less damage.
Also, the desk is closer. Brick walls require gettting up and walking somewhere first.