Yes, the gasket being bad can, and will, allow sand to blow back into the pool, especially on startup. Replacing the gasket is not hard, and it may very well fix your problem.