Grammatical? Yes. However, only "Mary wants to throw [or hold or have] a housewarming party this weekend" is logical.
Mary wants to celebrate the purchase of/moving into her new house this weekend.
I may throw a party for my daughter, my husband, or even (if I were a little girl) my dolly, but I've never herad of anyone throwing a party for her car.