You can add salt to any tank at all. It is not needed but many fish will tolerate salt to a degree. So called aquarium salt is the same stuff you have on the kitchen table except it does not have the traces of anti-caking materials or the traces of iodine added. If you insist on using salt in a tank of pet shop mollies, use sea salt instead. It does several things that may be needed by people with soft water. It adds minerals, raises the pH and raises the KH. If you have the soft water favored by fish like angels or rams or cory cats, adding minerals and raising the pH are useful things to do.
I live in an area where my tap water is harder than should ever be used with angels and the pH from the tap is around 7.8. That means that I can breed most livebearers, including pet shop mollies, with no troubles at all and no salt added. My mollies are living so long in my tap water that they are becoming a problem. They are well over 2 years old now and are tying up a 55 gallon tank where they grew up from being just fry. They have never had a single grain of salt added to their tank water and are doing great. I sell some each time I visit a fish auction but I still have about 30 from that drop I saved 2 years ago January.
On the other hand, pet shop mollies are an old trick for cycling a marine tank. Those fish can go into straight salt water and live with fish like Nemo in good health to an old age. I just looked up euryhaline with a Google search and guess what. Wikipedia uses mollies as their example of euryhaline fish.