Yes. All travelers who visit Indonesia must apply for a visa, though there are exceptions for citizens from certain countries. Here is some information about visas for visitors to Indonesia.
If you plan to stay in Indonesia for more than 30 days or for reasons not covered by the visa on arrival, you’ll need to apply for a visa in advance at an Indonesian embassy or consulate. Your passport must be valid for at least six months beyond their arrival date and have at least two blank pages. A confirmed return or onward ticket is also required. On the other hand, some nationalities may be eligible for visa-free entry for short stays. Therefore, it's essential to check the specific requirements based on your nationality before traveling.