No, Link building is not useless. If you will get link from niche and high authority sites it will definitely help you! But, if you get links on spamy, irrelevant and low authority sites then link building might not work. So, try to get quality links it will help to increase your website ranking.