Given the right situation, yes you can.
I've caught several kings on flies. They take better on a dead drifted or stripped fly than one that is swinging. The fish should not be traveling.
I'm not convinced if it matters what flie it is, as long as it's in their face.

Don