Changing flight in DMK with no baggage to claim

I have 2 different flight SGN - DMK and DMK - BLR

I don't have any baggage and I have around 4 hrs interval between two flights. Do I need to clear immigration in any case to catch my next flight DMK - BLR after arriving DMK?