Why not? Intention doesn't really matter in this case.
ETA: Not to mention, his intent was painfully obvious.
In my view his intention was to show his disdain for religion and what it has/ can cause. Sure there are 'better' ways to put that across but few that are more powerful