Is it wrong to see my ex?

Is it wrong to visit my ex in the hospital who is suffering from head trauma and kidney problems even though I'm in a new relationship? It didn't end bad between us and I still consider him a friend but my new boyfriend still doesn't want me talking to him so I haven't been but his sister just reached out and told me he was in the hospital.... is it wrong? I'm a very caring person but i know my boyfriend wouldn't approve or if he did it would bother him. But I also still care enough for my exs health.