Yes, a photon's energy $E = \hbar \omega$ and momentum $p = (\hbar/c) \omega$ contributions to the stress-energy tensor of general relativity are both directly proportional to its frequency $\omega$.