If you want to continue to use iPhoto after upgrading to Yosemite buy an upgrade to iPhoto 9.6, once you have installed Yosemite. Then run the iPhoto Library Upgrader. see: iPhoto '11: About the Library Upgrader
If you do not want to keep using iPhoto, since your library is not large, export your photos from iPhoto to a folder on your Desktop, before you upgrade:
Select all photos in iPhoto and use "File > Export".
Don't upgrade to a new system without making a full backup of your computer. You will need this backup, if you want to revert to your original system. Before upgrading from Snow Leopard to Yosemite check all your important applications and device drivers, if they are Intel versions or universal versions. The newer MacOS X versions since Lion do no longer support the Roseta environment, that is required to run Power PC apps. If you do not upgrade these older apps while still running Snowleopard, you may not be able to upgrade them at all. See this User Tip:
Classic, Rosetta, and 32/64 bit revisited.