Absolutely! It's the only way to protect yourself. I'm sorry that your daughter has put you in a position where you have to make this choice. I agree, it does sound like she was looking for a fight/ to live in misery.
Now that your granddaughter is an adult, hopefully, she will reach out at some point and be interested in having a relationship.
This must be painful, Conni. I'm sorry.