No, gyrase does not prevent supercoiling, it is what does the supercoiling (negative supercoiling). The supercoiling is in turn what causes bacterial DNA to condense since there are no histone proteins to wrap around.
You might have been thinking about topoisomerase (of which gyrase technically is one, but it's kind of the "opposite" one of the one involved in unwinding, at least for MCAT purposes). Topoisomerase is what relaxes the tension upstream of the replication fork when the DNA is being unwound by helicase, so if topoisomerase were inhibited, the unwinding process would go haywire (although, I guess it would still be unwound, albeit in a faulty, useless way).