Yes, just connect the GND of your external power supply to your Arduino's GND as well so that they share the same reference