If an illegal immigrant marries a woman who has legal status and they have a child will the father then have legal status?

No, marrying a US citizen or a permanent resident does not grant the illegal immigrant legal status regardless of whether there is a child involved or not.