While it's true that there is no general formula, one can say something if $g(x)$ happens to be invertible. In this case we can compute the derivative of the inverse by \begin{align*}g(g^{-1}(x))&=x\\g' (g^{-1}(x))\cdot (g^{-1})'(x)&=1\\(g^{-1})'(x)&=\frac{1}{g' (g^{-1}(x))}\end{align*}
Now in the integral we can make the substitution $u=g(x)$ so that $du=g'(x)dx$. Solving in terms of $x$ gives $x=g^{-1}(u)$ and $dx=\frac{du}{g'(x)}=\frac{du}{g'(g^{-1}(u))}=(g^{-1})'(u)du$. Therefore the integral becomes
\begin{align*}\int f(g(x))dx&=\int f(u)(g^{-1})'(u)du\end{align*}
So you could solve this integral and then plug in $u=g(x)$ into the final answer. While this isn't technically in terms of $\int f(x)dx$ and $\int g(x)dx$, it does turn the integrand from being a composition into being a product. Therefore, you could try using integration by parts to get an answer. However, it should be noted that whether or not this formula is actually helpful heavily depends on $f$ and $g$. For example, if $g(x)=e^x$, we get $$\int f(e^x)dx=\int f(u)\ln'(u)du=\int \frac{f(u)}{u}du$$ If $f(x)$ is something simple like $x^n$, then this can be easily computed $$\int \frac{f(u)}{u}du=\int u^{n-1}du=\frac{u^n}{n}=\frac{e^{nx}}{n}$$ On the other hand, in this case the original integral $\int e^{nx}dx$ was easy to begin with. If, as suggested by user53153, we consider $f(x)=e^x$ and $g(x)=x^2$, we get $$\int e^{x^2}dx=\int \frac{e^u}{2\sqrt{u}}du$$ which is just as difficult to integrate.