After looking into it, yes! Joe Hill wrote this song in 1910, these lyrics are from the song "the Preacher and the Slave". It probably stems from the 1910 Spokane Free Speech Fight, where the IWW was butting heads with the Salvation Army and the government of Spokane
Reminds me of a video of Silas Malafaia, a brazilian manipulative asshole crook pastor, preaching that the faithful should not denounce or report criminal pastors: "Is your pastor a thief? A criminal? Don't like it? Leave the church and find another one. (...) Don't mess with God's anointed."
Don't get me wrong I hate the church but this just isn't accurate. Churches do tons of work to help the poor, including financial aid. At least where I'm from anyway