For the current level of Spanish that you might have, I suppose that you are just starting, Duolingo will help you to learn vocabulary and some phrases. You won't find much difference between the Spanish from Spain and the Latin American Spanish in the basic level.
Nevertheless, if your goal is to speak Spanish, Duolingo will not help you do that. Most of the things that you learn in Duolingo are useless in the real life. There are indeed some funny phrases like “The spider does not speak” or "Look! A flying cow!" Try to use it in real life with a native speaker, and please post the results.
Therefore if you need to learn Spanish for everyday life or studying, besides Duolingo, you need to take into account other resources. Going to a classroom where you can practice with real people is so much better. Otherwise there is a resource that I recommend which is Rocket Spanish (I'm not affiliated with them in any way) which is the closest thing to having a real language class because it gives you real world examples and useful cultural and language tips.
Try to prepare as best as you can, but believe me that you will learn the language out of need when you arrive at your destination.
Source: my real life experience learning french before coming to live in France. I'm a native Spanish speaker.