It's totally possible to still have a safesign set up while using a gag, in certain setups.

As always communication with your partner beforehand is key.