Yes, Deflection bonuses to AC, and armor and shield bonuses from a magical source, such as the Shield spell, Bracers of Armor, and any magic armor or shield, apply in full against (most) guns. There are certain, very rare, exceptions... you will not see those for at least a level, if not two.