Although it's always best to vacuum and shock your pool at the same time, if you can only do one or the other, it's better to vacuum first. A good scrubbing and vacuuming of the pool walls and floor ensures that dirt and debris that can affect the water chemistry is removed before you add chlorine. This way, your pool will be as clean as possible.