Heavy flavor particles produced in LHC pp collisions at \(\sqrt{s}\) = 7, 8 and 13 TeV constitute an excellent opportunity to test the Standard Model and probe for new physics effects. Recent results by the CMS Collaboration on heavy flavor production and decays are presented.