when they came to the hospital first time, has patient 9038 had a sm bowel endoscopy nec procedure?
select count(*)>0 from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'sm bowel endoscopy nec' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9038 and admissions.dischtime is not null order by admissions.admittime asc limit 1 )