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