Unless you borrow and repay some USD-denominated amount of bitcoin. That would make more sense. And it is probably something like it, since we have an oracle in the system.
Yes, this is how it works. The loan you take is USD-denominated meaning the exact sats amount will vary.