The characters literally combine to mean “a crooked strike results in a correct hit.” This literal-but-vivid imagery is what makes the idiom so memorable and effective. It's a story in four characters: an incorrect action led to a correct outcome.
This idiom is extremely common in both spoken and written Chinese. Its connotation is almost always positive or neutral, used to describe a pleasant surprise.