It will work, but will require quite a bit of fettling to get everything working.
It wouldn’t be my choice, for anything. Sainsmart are very low-spec and, more importantly, low-QC manufacturer.
Cohesion3D makes a drop-in replacement for the K40, which runs a 32 bit controller, firmware developed in conjunction with the folks at Lightburn to give you the best performance from a non-DSP controller.
It aint cheap, but you get what you pay for.
My personal favourite is the Smoothieboard 3XC, but harder to find these days. The reason I prefer it is that it has ethernet. I’m not a fan of USB-connected lasers as they invariably need to be somewhere that is a pita for USB.