I'm confused about the following equation:

ΔG=-RTln(K)

The spontaneity of the reaction should depend on the reaction quotient, but it doesn't appear in the right hand side. The only possible solution I can see is that it is assumed the initial reaction quotient is 1, so that when Q=K, neither the forward or reverse reaction is favored. Is this correct?