Depends on the group of people. Mostly I don’t because it’s either irrelevant or convention not to use Dr. for that group. Sometimes though, a conversation before and after I mention I have a PhD is wildly different.
So, if it’s a kind of fancy or prestigious event in any way, and people don’t know you well, I would use it. Otherwise probably not.