It is correct; start with the formula
P(A|B) =
P(AB)

P(B)
and multiply both sides by P(B)