Well, without further details it is hard to tell. Anyway, if you mean the XSS is in the web part itself - when editing it, then yes. However, a user who has access to Design tab and can add web parts, has much easier ways how to damage or hack the web site. If we are talking about live site - where everyone has access, then we are not aware of any security issues here.