In theory though there would be nothing stopping an adept force user (like Mace Window) from immediately seizing your gun, or even deactivating it in your hand with the force.