Yeah, it ties in. It's has the same universe, races and factions. The story relates to the first one but doesn't affect it at all, so it's a spinoff, not a sequal.
And it's just as addictive as Divine Divinity. <img src="/ubbthreads/images/graemlins/delight.gif" alt="" />