Yes. Pan people can have relationships with any gender identity, and ace people don’t, or rarely, feel an urge for sex. These are two completely different things. But I want to say that you don’t need to ask if you’re valid. The answer is always yes.