It depends on what your sweater is made of. If it is wool, then don't wash it in a machine. Some cotton sweaters can be washed in a machine but you need to lay it out flat to dry and block it. There should be a washing instructions label in your garment with recommended care. I'd follow it closely if you want to protect your investment.