Yes, if you live in the U.S. (or any other country that grants immediate copyright upon creation). Technically, as soon as you recorded it, it became copyrighted. But unless you register with the government, there may be issues down the road if someone steals your work, as proving that you created it might become difficult.
In a nutshell:
3 Ways to Copyright a Song - wikiHow
If you live in a country that doesn't recognize copyrights unless the work is registered, then obviously you'll have to contact whatever part of your government handles registration, and simply recording or uploading a song may not be enough to ensure your lawful ownership