I wanted to know whether it's fine to play this game without finishing Divine Divinity and Beyond Divinity. Are the stories heavily related?
No, you can play all the Divinity games like you wish ...

But for the story and especially the "humour",
it's more fun to play at least first DD before playing the DKS. But it's not a "need to do" ...