No. Import Export Code registration is not compulsory for the below-mentioned activities:
If the import or export of goods is done for the personal use.
If the import or export is carried out by any Government Ministry or department or a notified charitable organization.
Any other category mentioned or defined by the DGFT.