No. Indonesia has no legal minimum time you must spend abroad between two stays, so you can generally re-enter any time after leaving. If you leave and re-enter very often for short periods, keep two things in mind:
- Indonesian Immigration may ask about the purpose of your stay. Keep a return or onward ticket and your accommodation address at hand.
- The country you travel to (e.g. Singapore or Malaysia) has its own entry rules. Frequent short "visa runs" can lead to closer checks there or, in some cases, a refused entry. Check that country's current entry requirements before you travel.