What kind of glue? If it has some kind of solvent, it will be a deterrent. If it's Elmer's Carpenter glue or exterior Titebond etc. (polyvinyl acetate or aliphatic resin) then I don't think the bees will care one way or the other.