Yes, you can. Your long sentence is a little bit awkward. If you eliminate "so as to get rid of the smell," it reads very well, and still has the same meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.