Stormtroopers don't seem proficicient in close fighting,they don't even carry close range weapons, after the first wave of klingons the trooper would be shreded and the one that broke and ran would get it twice as bad. Space warfare would be different, the empire employs small fighters, any capital ship would carry dozens and would likely swarm a klingon ship beyond its abillity to target them giving the Empire ship an advantage.