Touching Ham
pig and its flesh is not impure. To consume it is haram only.