yes, it is correct.
Alternatively, you can condition on the first outcome. If $A$ doesn't win in the first outcome, the first two trials must be failure and then it is a renewal process.
$$\mathbb{P}=p + (1-p)(1-q)\mathbb{P}$$ $$(1-(1-p)(1-q))\mathbb{P}=p$$ $$\mathbb{P}=\frac{p}{1-(1-p)(1-q)}$$