That's correct
Mod returns the remainder when the divisor is wholy divided into the main number.
in your example d goes into n, n/d times
so subtracting the integer of that Int(n/d) multiplied by d from n leaves you with the remainder.
A large number of Excel functions can be expressed in terms of other functions.
Ultimately all functions can be broken down into the +, -, * and / functions