NoNo. The magnetism of a blob of Nickel/Iron is completely separate from the the earths magnetic field. Magnets by definition have their own magnetic field, they don't need an external one to work. Back on topic though, nobody has mentioned a crucial drawback that is common to all glues - before they have time to set, they will evaporate! All glues are either based on polymerisation or the evaporation of a solvent such as water. Either way, an active component of the glue is quite volatile and as such will evaporate very quickly under the near-perfect vacuum of space. The most likely outcome of this is that the nozzle will be gummed up as soon as it is opened, and at best your glue will be very ineffective, having mostly evaporated before it had time to properly set.