Yep. Blasts do get shaped (or nullified) by strong enough walls.
It's one of the many reasons I keep going on about the wonders of assault cannons. Like bows, but so much more useful.
One of the most satisfying things? Bouncing balls off walls, inside a ufo with no LoS, and killing a couple of enemies while remaining unscathed.