Probably not as it is not forbidden to depict Jesus. The attack on them would not have happened if they didn't use a picture of Prophet Mohamed.
Saying that though, it may not have stopped the attackers striking another target anyway.
My sympathy was fairly thin anyway.
Seriously, who publishes a picture of Prophet Mohamed and thinks they will get away with it?
Not saying they deserved to be killed for doing it, but if I was the top guy at a magazine publication and my workers said they were going to put Prophet Mohamed on...