It depends on what yarn you used. If it's wool you would handwash very gently and block it until dried. If it's acrylic you can machine wash and dry most of the time. The label that came with your yarn should give you the best way to care for your scarf.
"Never doubt that a small group of thoughtful, committed citizens can change the world. Indeed, it's the only thing that ever has."--Margaret Mead