Anytime a co-worker makes inappropriate comments about any topic, you have the right to speak up and say something. The workspace is yours just as it is hers. With what I know, based on the limited information, I don’t see what you have to lose in taking steps to resolve the situation. I suggest that you take her aside at some point, in the break room, or a conference room, and discuss the situation. Express how her comments make you feel uncomfortable and ask if she can temper the negative comments around you and others. You may want to say that you understand her viewpoint, but that you do not share it. Tell her you want to minimize conflict at the office to make the work environment more pleasant for everyone. Thank her for her willingness to listen and for her cooperation.
I’m not a big fan of public shaming, but if she continues to make these negative comments after your civil attempt to change her behavior, speak up and say something like, “Hey, let’s try to keep things positive. Negativity isn’t going to help any of us”. And, keep saying it.