As far as I know you just have to know which words go with "на" and which with "в" concerning "going to".
However I was wondering isn't it possible for certain words to be used with both prepositions?
Я иду на театр. - I am going to see a play (in the theatre)
Я иду в театр. - I am going inside the theatre building for whatever reasons