Spam history is the most important factor. If a domain is clean, it will help you more or less, depends on backlink profile.
But if it's dirty(used in the past for other purposes, pbn's etc) it will not help you to rank at all, more often you'll experience ranking decrease when you put a link...