Is that enough time to learn a language? Not the whole thing, no.
But enough to get by? Enough to make real, serious progress? Absolutely. You've already got the one thing that actually drives language learning: a reason, and a deadline. A plane ticket on the calendar beats a year of good intentions. Point that motivation at a method that works, and two weeks goes a long way.