The city is safe enough for work hours or a day trip, much longer & you have life to think about. Some things only happen in Chicago, best is to seek otherwise.
You won't necessarily get shot. Most people are going about their personal business. But if you're in the wrong place at any of many wrong times, yes, you can get shot going out at night.