Criminal justice system help end homelessness

can the criminal justice system help end homelessness?