Yes, but this relation does but apply to statistical mechanics and statistical physics, they mean the same: https://en.wikipedia.org/wiki/Statistical_mechanics
What is included in "statistical physics" that is not included in "statistical mechanics"?