Not necessarily, but having some basics (or being willing to learn) after you arrive at your destination will be beneficial to you. Your language abilities will be a big factor that will determine which jobs you are able to secure, so by expanding your skills you will increase the range of roles available to you. Learning the language can also help you immerse yourself with the locals, instead of sticking with other backpackers who share your mother tongue.