Do you think this is ok to say to your own child

My niece was upset and was saying I don’t want a sister , I don’t want this family then my sister / her mother replies” if you don’t want a mom that’s fine with me.” Knowing that she wants to move back with her so bad , she’s only 9 and has behavioral issues because of her mom. I can’t even sleep thinking about this whole situation