If Milah and Hook hadn’t come back to that specific port, she would have lived.
Makes you wonder, why they came back? My head canon is, since Bae’s older now and Hook mentioned to Bae that Milah wanted to come back for him when he was older, that was why they were there. Except Milah didn’t know that Rumple lost Bae at this time when they came back.
In any case, she is a plot device character, much same the way the blue fairy is.