Yes! Even if you only know a few basic phrases, it's always appreciated when travelers make an effort to communicate in the local language. This shows that you're respectful of the local culture and willing to learn.