Yes replacement Spen should work fine, if not you could just reset the pen and it should work perfectly with the device. But make sure to buy the Spen from reliable source as many sites sell Spen that doesn't have Bluetooth support, so those kind of spen won't support Bluetooth functionality in the device and will just be like a normal stylus.
If you've found my post to be helpful, please like the post. If my response resolved your issue, please press the "✓ Accept as Solution" button.
@Samsung_wfC8BBF YEs you can buy Spen with bluetooth with any color as long as you pair them. Just insert the new spen for a minute and it will pair to the phone.