Do magnetic oil drain plugs really work?

Many gearboxes come with magnetic plugs or a simple magnet inside the pan (automatics). When serviced, these magnets are usually covered with fine black grit, metallic particles. They must be doing something…