I do believe that it all depends on how long you are going to stay there, if the visit is ver brief like two days , then I do not see the need, but if you are going to stay for a while longer then it is polite and safe for one to learn the language that is spoken there, just incaser you find yourself in an weird sitution, you might be able to bail yourself out if you know some of their language.