No, you are not paid for writing it. You will only see an income if your work is used. Some publishers will pay an advance to a songwriter, if there is a publisher in the business plan. The publisher may pay an advance on royalties that may be collected if the song is a money-maker. We only get a percentage of what the song generates.
On March 6th, 2012. See this statement in context.