While many places do accept dollars, please take into account that some places will offer you a very disadvantageous exchange rate. It's therefore preferable to always have some local currency on hand.