Yep.. I think that's the easiest way to do it!
Figure out the notes (E, D, etc.) in the guitar tab (I think most tabs have the notes written in some kind of way -- don't like them too much) and then play it in the piano. That's how I would do it. Or ... you can keep training your ear and try to figure it out by yourself

it's way more fun!!! (hint hint)