Shooting a weapon after it's equipped

Does that mean if I cast to the parent Gun BP that it will work for any child class of the Gun BP?