Technically what you are doing is reheating the ham and not cooking it further.