I am trying to make a form that registers the user and creates a node at once. Is there a module for that? What is the best way to code that (if there is no module).
You're looking for the Inline Registration module.
The Content Profile module does this. Without more information, I can't say if this will fit your needs.