No, there are no cheats for Assassin's Creed.
So an invincibility code isn't something you'll find, at least not through official means. You'll have to rely on skill to stay alive.