Newer iPhones are water resistant and rated to survive spills like that (but no deep-sea diving experiences). Honestly, your phone is probably fine.
You need to make regular iTunes or iCloud backups of your phone if your pictures are that important.