Exactly. As the beer carbonates, the CO2 builds up in the headspace of the bottle (between the beer and the cap). Liquids can hold more dissolved gasses at lower temps than they can at higher temps. So, as the beer chills, it absorbs that CO2 that is sitting in the headspace. If you don't give it time to absorb that CO2, you can get a nice *psssst* when you open the bottle, but not enough carbonation to maintain the head and the beer tastes flat, even though it carbed long enough.
I like to suggest to people to keep the beer in the fridge, but set the bottle out on the counter for 20 minutes or so before opening it. Still allows the beer to come up from the cold temps of the fridge, but makes sure the CO2 is absorbed. I also don't give away warm beers. I always put them in my beer fridge for a few days before I hand them out. That way I know they can open them as soon as they get home and they'll be good.