The math is correct. One thing to look out for with a calculator is that you have to put parentheses in the right place in order to get the right answer:
$$\frac{1}{3^{-4}} = 1/(1/(3^4))$$
If you just type in $1/1/3^4$, your calculator might compute $(1/1)/3^{4}$ which will give you a different (incorrect) answer.
One way to see why exponents work this way is to remember two rules from algebra:
$$\frac{1}{a}\times a = 1$$
$$b^{-k} \times b^{k} = 1.$$
Based on the first equation, we know that $\frac{1}{3^{-4}}$, whatever it is, must be some number you can multiply by $3^{-4}$ to get 1:
$$\frac{1}{3^{-4}} \times 3^{-4} = 1.$$
Based on the second equation, we know that
$$3^{4} \times 3^{-4} = 1.$$
If you notice what is common between these two equations, you can see that $$\frac{1}{3^{-4}} = 3^{4}.$$
But actually, in my daily life, I usually just check my math according to these rules: (1) positive exponents make large numbers larger and small numbers smaller (2) in contrast, negative exponents make large numbers small, and make small numbers large. (3) reciprocals do the same thing that negative exponents do.
So $$\frac{1}{3^{-4}}$$ will change $3^{-4}$ from a big to a small number or vice-versa. $3^{-4}$ is a small number, because of the negative exponent. Hence $1/{3^{-4}}$ will be a big number, like $3^{4}$, rather than a small number like $3^{-4}$.