Can an illegal immigrant get documents after marriage with a us citizen?

Yes, an illegal immigrant, in the US can get married to an American citizen and obtain their documents