IKEA lock with vivokey spark 2

I want to buy one of the locks so I can copy the card onto my vivokey spark 2 and unlock it with my chip, is that possible

You wouldn’t copy the card to the spark, you would add the spark as an authorized user to the lock.

But before you go out and buy one, you may want to read this thread.
https://forum.dangerousthings.com/t/ikea-rothult-hacking/