As long as everything else is correct, there shouldn’t be a problem. In other words, if it would function with a standard spring then swapping it out for the JP equivalent shouldn’t cause any issues. There are caveats for anything, but this is generally correct.
If you’re building your own pistol then do your homework because buffer weight is important given your gas system/barrel length/caliber/etc. Plenty of variables.