do flavors transfer?
First, ensure that you season your pan correctly.  Once your cast iron pan is seasoned; that is, a layers of oil have polymerized on the surface, cleaning it with soap and water is not a problem. While working to build up a good seasoning, you can clean by using salt as an abrasive and wiping out well.  Both of these methods will eliminate the possibility of flavor contamination.