highly doubtful; the ubb7 gallery isn't really what you'd think of as a gallery; it's a forum with a differant template which allows uploading photos into it...
Now importing your images however from an actual gallery, would likely be quite tricky (but an interesting project none the less).
I'm actually quite curious about the database schema of photopost