Would be great if true, but that doesn't really correspond in reality truly, especially in intellectual products. Compare even Linus Torvalds fortune with e.g. snapchat founder. Not even talking about thousands of 0 profit open source projects with millions of installations versus some saas hustler - usually the former provide much more value to society than some guy who is just good at selling stuff.
UBI might fuel some useless work, but it also might provide a way to people to be more into creative side of things rather than selling and marketing rat race.
Also in less developed countries money even less corresponds to value. It almost always has some kind of mafia and corruption that extracts huge portions of value from the economy and basically net negative, though profitable.
I'd like to live in the world where money are always allocated fairly, but we see that in IT, for example, predating, stealing data, spying on people bring more money than the honest work due to misaligned incentives, when bad actors pay more money than actual consumer.