I had lots of pizza during pregnancy but all was ok...I'm not in anyway saying that its safe btw :-k tho??

I had heard if its cooked it kills any bacteria so thought I was safe?