It depends on the cause of the muteness. A person who is mute because their vocal cords were removed would physically not be able to scream. A person who has selective mutism and cannot/will not speak in certain situations would most likely not be able to prevent the impulse to scream (or make some vegetative noise) when being injured.