It won't "hurt" your ranking but you need to do it right. If your website is about "dog training", it's absolutely no problem to get a backlink from a website in the business niche if there is an article like: What should I consider before taking my dog to the office?Creating backlinks from unrelated niche increases the website, will it hurts the ranking?
If your backlinks are from unrelated niche it is going to affect you.Usually can put blacklink on those sites that are not my niche
Creating backlinks from unrelated niche increases the website, will it hurts the ranking?
Yes, It'll hurt the ranking, If you create the backlinks from unrelated to your niche, It may lose your trustability,
So, I suggest to get backlinks to your niche-related sites or you can go to quality general niche sites.