The argument goes "whether or not you are under a gag order, you can plead the fifth without incriminating yourself, so this is not actually a lose-lose situation". In theory.
Technically speaking, you are only allowed to refuse to answer a question if you believe that answering will incriminate yourself.