They are definitely not synonyms, that would mean they mean the same thing wich they definitely do not. They are antonyms.
Usually what element helps you identify the theme of a story is what lesson the main character learns, or any important idea or refrain throughout the story.