I want to estimate the effect of several variables $x_{1,it}$, $x_{2,it}$, $\dots$ on $y_{it}$. All of these variables vary across countries $i$ and time $t$. I use OLS to estimate a model with country and year dummies $D_i$ and $D_t$:
$y_{it} = \beta_1 x_{1,it} + \beta_2 x_{2,it} + \gamma_i D_i + \delta_t D_t + \epsilon_{it}$
Additionally, I am interested in the moderating effect of a time-invariant variable $z_i$ on the relationship between $x_{1,it}$ and $y_{it}$.
My intuition is to include $\eta x_{1,it} z_{i}$ in the above estimation. While $z_i$ does not vary across time, $x_{1,it}$ does and $\eta$ should pick up the effect of interest.
Is this intuition correct? If so, are there any caveats? If not, what am I overlooking?