In theory, yes, but in practice this isn't realistic for a short holiday.
Importing a pet into Indonesia requires an ISO microchip, rabies vaccination followed by a mandatory 30-day wait, a rabies antibody blood test, core vaccinations, parasite treatment, an official health certificate, and an Indonesian import permit arranged by a licensed pet importer — the whole process typically takes 4-6 months, and Bali specifically has stricter, sometimes-changing rules that often require routing pets through Jakarta or Surabaya first.
This is designed for people relocating long-term, not for tourists bringing a pet on a short trip. If you're planning a long-term move with a pet, start the process at least 6 months in advance and work with a specialized pet relocation service.