Depends on type of…
…cheese: unpasteurized ones (goat cheeses, feta, blue, brie, emmentaler, comté, gryere, etc) although required by fda
to be aged at least 60 days so acids & salts & ageing process may naturally prevent harmful bacteria
Such cheeses may still present health hazard if not properly cared for. Pasteurized cheese should not present a problem. If in doubt, don't eat it.