Yes. Because if they are not you can make riskless profit by simultaneous selling and buying in appropriate currencies (triangular arbitrage). Arbitrage activity would very rapidly eliminate any inconsistency, on currency markets probably in less than a second.
If you are traveling abroad, most moneychangers charge a fee for exchanging money. In your example 1 US dollar equals 6 francs, but you might get only 5.7. Then when returning you might get only 95 cents for 6 francs. If you are planning on spending a lot of money, it pays to think ahead about exchanging it and comparing rates.