Is it okay I check on my ex?

so my ex boyfriend contacted me basically to see how I was. He just broke it off with his girlfriend, died a couple times and fighting depression. I took him home and we hung out as friends for a bit. I wished him a happy birthday and I haven't heard much. Worried he might have hurt himself or overdosed again. Is it cool to check on him as a friend?
Is it okay I check on my ex?
Post Opinion