I'm assuming you're talking about the little scroll ball on the Apple Mighty Mouse. I've heard that when this happens it needs cleaning. If that doesn't work, yeah you can get a replacement or it repaired through AppleCare.
Everything that came with your computer (in the box) from Apple is included under the AppleCare.