Only if they are antistatic gloves, which are electrically conductive. Normal rubber gloves will store charge because they are dielectric insulators, which is exactly how capacitors work, so are considerably less safe for sensitive electronics than bare hands which generally measure ~5000ohms depending on humidity.