Oh yeah..if you knit it in all stockinette it will roll. You need a non rolling edge like garter, ribbing or seed stitch to prevent that. A few others will work, too. There's a thread at the top of the forum addressing this.
When asking questions ALWAYS post the name and a link for the pattern if you have it.