Yes.
They are exactly the same capacitor, just one in "axial" form (the one from digikey) and the other "radial" form. (the one from radiShack, solder leads pointing in the same direction)
However, please keep in mind you are being completely ripped off buying components from RadioShack. RadioShack is the equivalent of a convenience store: convenient, but inflated prices on everything (for electrical components at least).