No, it's not okay (although it depends on the species of cory). In fact, many freshwater fish don't handle salt well. Please see the following:
The Corydoras are quite sensitive to water parameters and quality, and highly intolerant of salt
, chemicals and medications. Signs of stress usually begin with rapid respiration, then lethargy (often just "sitting" on plant leaves, wood or the substrate respirating heavily, sometimes near the surface) and sometimes rolling onto one side. At such signs, a partial water change of at least 50% with a good water conditioner should immediately be made, and appropriate steps taken to remove the cause. Any sudden fluctuation in water chemistry or temperature often induces shock, causing the fish to "faint" and fall over on its side. Corydoras introduced to new aquaria will settle in better if the tank is established; Cory's do not adjust well to a new aquarium with still-unstable water conditions and fluctuations.
Read more: Julii Cory (Corydoras julii) Profile
75: blood parrots, featherfin cat, emperor tetras, turquoise rainbowfish, BN plecos, japanese trapdoor; 46: WCMM, gold inca snails, ghost, bamboo & amano shrimp, kuhli loaches, rummynose & ember tetras, endlers, platies, flame gourami, guppies; 16: pygmy, peppered, loxozonus corys, otos, assassins, RCS ... ~ Research PRIOR to purchase.... ~