Iron Golems do protect the player and any close villagers, but they will also attack any other mobs that come near. This makes them a powerful protector for your home and village. The only downside is that they do not attack creepers.