Under WPA rules, no, it isn't legal.
Here's the pdf, but I'll paste 13.5 under "Bank Pool." [p42]
13.5 VALID BANK SHOTS
For a bank shot to be valid, the athlete must indicate the object-ball, one or more cushions in order thatthe ball will contact, and the pocket the object-ball will go into. Incidental cushion contacts on the two rail sections adjoining the target pocket as the ball enters the pocket are not counted as cushion contacts for or against the shooter.
In addition, the following requirements must be met. The cue-ball must contact the called ball before it contacts any other ball or any rail. The called ball must not contact any other object-ball or the cue-ball a second time.
The object-ball must not contact uncalled rails except for the incidental contact mentioned above. There must be no foul during the shot.
Catching the top jaw to straighten it out is not the adjacent rail. So, inning over, ball spots up.