I would highly recommend airing it out for several days, or possibly a couple of weeks in the shade before washing it. If you have a covered patio or a space where you could lay it out, or hang it, so the sun doesn't touch it, it should take the smell out, then I would wash it for sure.