Answer:
That depends on where you settle in. If you settle into a place that would make you a citizen, then you're a citizen. If you settle into a place that wouldn't make you a citizen, then you're not a citizen.
If you are asking if you marry an illegal immigrant then they wouldn't be deported. If fact its their ticket to the USA. If you are a foreigner and have a child here that child no matter your citizenship is a US citizen. Its why "they" hop the border and have kids. The mother then has access to the US because the child is a citizen. If you're short on cash, marry one. Sometimes they'll pay you.