They are independent topics, although they can be combined in quantum statistical mechanics. There is also a strange connection between them that Feynman and Hibbs discuss in their book "Quantum mechanics and path integrals": mathematically, the quantum mechanical propagator, which gives the probability amplitude for a particle to go from one point to another as a function of time, is related to the partition function of quantum statistical mechanics, where the inverse temperature ##\beta = \frac{1}{kT}## acts as a kind of imaginary time. That's kind of an advanced topic, and is not usual covered in the first course of statistical mechanics (if ever).