Yes, the working of vacuum cleaner is related to air pressure. It is the difference in air pressure which causes a vacuum's suction. A fan which is driven by an electric motor reduces the pressure inside the machine. Atmospheric pressure then pushes the air through the carpet and into the nozzle, and so the dust is pushed into the bag.