Can someone that's been diagnosed with mental illness get a career in criminal justice?

Yes it's possible. As with any job, and especially with criminal justice, make sure your condition is managed.