The snake plant produces this unique chemical called saponin, which is said to repel mosquitoes - not attract them. So it could be beneficial to have a snake plant at home if you notice these critters flying about.
Also, it is recommended that you take preventive measures a home to avoid mosquitoes in general. Remove stagnant water around the house and spray some repellent every now and then!