There are obviously many factors...the talent of the players catching the balls, and the offense as a whole, but a quarterback can sometimes put his receivers in a good position to get yards after the catch by throwing perfect balls and reading the defense properly.
Basically, it's not cut and dry either way. It's all interconnected.