Maim immunity and retreat

If you have a powered clockwork limb giving you immunity to maim and retreat, and get hit in the limb with a pierce, can you choose to not retreat the pierce, and take the maim-immune instead of the 5 damage? I would assume so, but I want to be sure.