\documentclass{article}
\begin{document}
\section{This is the First Section}
\label{section:first}
This is the first section! It is before the second section\footnote{Generally, at any rate}.

\section{This is the Second Section}
This is a reference to Section \ref{section:first}, which is automatically numbered.
\end{document}