It is safe to cook while camping provided you take care of the fuel and cooking equipment and how food is prepared. Ensure that your hands and surfaces are sanitary and that food, particularly meat, is cooked adequately. A simple digital food thermometer can make sure that the internal temperatures of meat are safe to eat.