Yes, though you need to do so carefully. Old gas that has started to separate and gum up will not be saved by filtration. But if you have fresh good gas that accidentally gets contaminated with dirt or other debris you can filter it to remove it.