Yes, basically - but it does depend on how formal the situation is. Nobody should walk in front of the King (well - other Heads of State can) under normal circumstances.
Does this only apply to the King? Does Kate have to walk a step behind William in a formal setting?