Your next pocket travel guide
score:1
short answer:yes I did this many time
Nothing in immigration law forbid it, but you must be ready for a few nosy question at the custom. They'll want to check you are not working illegaly in Indonesia