pre packed ham

Is it okay to eat pre packed ham??? I cooked it on the stove on medium heat till it was steaming hot & almost brown.... Worrying now cause I just read it's not okay