If the catfish can fit into the mouth of the goldfish, no.
I remember reading a post from someone, frantic for help, trying to figure who to cut to save the other, for the catfish will extend all rays when in distress and then it is impossible to pull it out of the goldfish mouth.