Under international law, copyright is the automatic right of the creator of a work. This means that as soon as you write down a song or make a recording, it’s copyrighted.
In order to enforce the copyright though, you’ll need to be able to prove your ownership. In the US, that means you need to register your song with the U.S. government’s copyright website. The registration of your copyright is recommended, but not required.