Once you are happy that your Photos Library is on the external drive and working correctly, you can delete it from your Mac.
I don't share my photos with other devices, so I can't advise how it would work with an external drive. Obviously you would have to have the drive connected to your Mac, but whether shared photos from other devices would go to the Library on that drive, I couldn't say.