Well they are living on government money already, so a UBI wouldn't change much for them or for how they burden society.
You will always have freeloaders. But it will work if it is only very few of them. It will be much more important to provide somewhat fulfilling jobs to people to encourage working. Because working in a coal mine sucks but having a passion-driven career is actually fun and rewarding.