Yes, but unless you have a fast connection, there will be a bit of a performance hit.
I'm doing this on a NAS over 802.11g, and it works fine but starts up slowly. It also works slowly accessing the iTunes store.
One nice thing about this is being able to access the same iTunes library from multiple computers - just point them to the same iTunes database file on the external drive.