Spending or withdrawing dollars in Cambodia


If I want to spend or get dollars from ATM in Cambodia, is it better to top up my UK card in pounds or dollars? Does it just make a difference to the rate of exchange? As far as I understand, if I decide to top up in dollars from my uk sterling account, I would get the exchange rate of that day, otherwise I’d get the rate on the day I spend - is that correct?