If there's still a bit of solder on the four small audio solder pads on the logic board yes you can resolder the socket in place using a pencil soldering iron like the Weller WM 120. There are two methods to restore the speakers functionality when the audio socket was pulled from the logic board. If the socket still has the four pins under it then you can resolder them if not then you can solder four wires directly to the pads then solder or connect them to the speakers wires.