If it's a special occasion such as a birthday; special anniversary; wedding shower or baby shower then yes, you should take a gift. If it's just a get together with friends for dessert then no, it's not necessary to bring a gift unless you want to bring a bottle of wine or flowers for the hostess if you know them well, but not mandatory.