Genral idea is that you must have acid and conjugated base in the solution. In the case of the carbinc acid there are two such pairs. When you dissolve CO2 in NaOH - depending on the CO2 and NaOH amounts - you will get mixtures containg all three possible forms of carbonic acid - H2CO3, HCO3(-) and CO3(2-). As AWK stated whether they will form a buffer depends on their ratio, which in turn depends on the ratio of NaOH and CO2 used at the beginning.