Yes.
Hold the Option key when you start iPhoto and you'll get a dialog where you can create or select a different library to use.
If you already have photos in your library, just move your "iPhoto Library" file from your Pictures folder to the external drive. Launch iPhoto holding the option key and select the library from where you moved it to. iPhoto will remember the last library you used, so you don't need to always launch holding option.