Yes, when changing between an international and a domestic flight, passport control will take place at the connection airport, in this case KUL.

Luggage will be checked through, however, except in a few countries (not including Malaysia AFAIK)