Question

I am just starting to learn about trading so I apologize if this seems like a stupid question. If you are trading a currency pair in which neither are the currency your account is in, is your trading not subject to 1.the fluctuations in the currency pair you are trading and 2. the difference in the currency you trade and then the exchange rate back to your own account currency? If this is the case even if it seemed like you made money trading but the currency your account is in gained vs the currency you were trading could you not actually lose money on a winning trade in a foreign currency?