Getting married doesn’t make someone who was in the country illegally be able to be here legally. If you are in the country legally but with a defined time period (e.g. work or student visa) you can stay legal by getting married, but if you came to the country through illegal means (and don’t qualify for asylum) there…