The locals will appreciate it and it will make your interactions easier. You don’t need to master the language but learning a few things like “Hello,” “Goodbye,” “Thank you!”, “Where’s the bathroom?” will go a long way to endearing yourself with the locals. They’ll like that you tried.