I'm don't remember because there is more than year I don't touch webspeed coding now, but it seems to my mind, yes.
Whatever, generate a new cgi-wrapper procedure, and compare, and if there is a set-cookie procedure in your output-headers, it will prove that is the good way of programming.