If we can learn $p(x, y)$, we can recover $p(y \mid x)$ from the definition of Conditional Probability.