Uhhhh, well as long as they didn't have a "bad" break up I think it's okay to message and ask how she's doing?
Usually I'd tell my friends it's not a good idea if they came from a really bad relationship
where there was some sort of abuse or unreconcilable difference they angrily fought over...