In brief
Draining and rinsing prepare the product for a salad or warm dish.
Useful to know
Canned beans are already cooked and can be used after draining and rinsing. Iowa State describes use in salads, chilis, tacos, and other dishes. Dry beans require separate pre-treatment and are not replaced by the same measured amount without specification. [1]
Upon purchase, read the composition and choose whether you want a simple product or already flavored sauce. If the recipe contains its own spice mixture, the finished sauce can change the result. It is a question of compatibility of ingredients.
After opening, do not plan the remainder as an unopened can. Iowa State indicates a covered container in the refrigerator and use within 3-4 days for remaining cooked or canned beans. [1] The label and specific conditions remain important; prepare an amount for which you have a real next use.
Sources
For further detail and to check the information: