Org-mode only export LaTex Source Blocks

I'm looking to use org-mode to typeset homework for a math class I'm taking and was wondering if there is a way to export only certain LaTex blocks to the final PDF using org-babel. As an example consider

** TODO [#A] Question 1
#+BEGIN_SRC latex
\begin{exercise}{1}
Prove the theorem
\end{exercise}
\begin{proof}
Let $x \in A$ blah blah.....
\end{proof}
#+END_SRC


When exporting to PDF I would only want the LaTex code to show up in the PDF but not the TODO heading or any of the other notes and links that might be below it. Is there a way to do this?