Am I working this problem properly?

If $\displaystyle f(x)=3x+1$, and $\displaystyle g(x)=(x^2+5x)^{-\frac{1}{2}}$, find $\displaystyle g(f(x))$.

Working:

If $\displaystyle f(x)=3x+1$, and $\displaystyle g(x)=(x^2+5x)^{-\frac{1}{2}}$ then, $\displaystyle g(f(x))$=$\displaystyle ((3x+1)^2+5(3x+1))^{-\frac{1}{2}}$.

Am I correct, and is that the final answer?