Obviously you need to edit it to the correct path and file name for your system. But I don’t do WP, so there may be some peculiarities to using includes. Maybe a WP expert can comment on that.
It’s not something I have tried, I don’t imagine the exact same method to work, as a css background is not an element within the html. But there may be a css method for it.