Actually no, this will at best free one crank arm. But you're on the right track. Bring two new cotters with you; when one crank arm breaks free, put the cotter in and keep riding. When the second one breaks free, put on the other cotter and head home.
This^ best advice (short of the special/modified/kludged automotive/machinist tools)