As long as the website has great metrics and its not spammy, then its ok. This has been my observation about backlinks. Although lots of people do not recommend that. But i personally recommend links from sites with great metrics for link building.
Although, first priority should be to get links from a relevant website but if that is not possible then a link from a non relevant website which is trusted by google is still good and can help in rank improvement.