Suppose we have a smooth map between smooth manifolds $f:M \mapsto N$ where $f$ is transverse to a submanifold $X \subset N$, i.e. any point in $X$ is a regular value of $f$. We know from the implicut function theorem, $f^{-1}(x)$ is a submanifold of $M$.
Do we also have $f^{-1}(X)$ is a submanifold of $M$? Is the proof just a generalization of the previous result? If so, what is its dimension?