Nope.
But your second "function" isn't a function. It's a code fragment (which does contain a function as part of the code fragment). You haven't given any indication as to where you have put this code fragment.
In any case, a variable declared inside of a function has no visibility outside of that function.