No, you cannot apply for a KITAS upon arrival. The KITAS must be processed before entering Indonesia, and you will need an entry visa related to the KITAS (e.g., VITAS) to convert it into a KITAS upon arrival.
When it comes to Legal & Tax matters, making the right move is vital.