Synthesis of sodium methoxide
No, all that does is give you back your NaOH. Its not a strong enough base to completely deprotonate methanol.
I use sodium metal in methanol, cooled in ice/water bath and stirred under nitrogen for safety.